EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #07711


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] REST problems with capital letters


Hi all,
For some reason I cannot use the REST to update fields with text containing non-ascii capital letter, such as Å, Ä, Ö or Ü.  No problem with smaller caps like å, ä, ö and ü.

Works:
curl -v -u $user:$pass -H "Content-Type:text/plain;charset=UTF-8" --data-binary 'åäö-ü works' -X PUT 'https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftestserver.slub.se%2Frest%2Feprint%2F1%2Fcomment.txt&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&amp;reserved=0'

Fails:
Works:
curl -v -u $user:$pass -H "Content-Type:text/plain;charset=UTF-8" --data-binary 'Ö do not work' -X PUT 'https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftestserver.slub.se%2Frest%2Feprint%2F1%2Fcomment.txt&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&amp;reserved=0'

probably something very simple I missed but I cannot find what.  Any help much appreciated.

Actually, it doesn't seem like the header is required, even

curl -v -u $user:$pass -d 'åäö-ü works' -X PUT 'https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftestserver.slub.se%2Frest%2Feprint%2F1%2Fcomment.txt&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&amp;reserved=0'

works.  But as said before, when trying to send capitals with umlauts, rings etc then you get weird stuff like ��� instead.

Note: No errors anywhere, simple scambled data inserted.

Regards,
Christer Enkvist
---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.slu.se%2Fom-slu%2Fkontakta-slu%2Fpersonuppgifter%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=Zq2dR69FIiqLuv8VpDUumRB8rMr3p6L8Hd3dzcPv4zw%3D&amp;reserved=0>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.slu.se%2Fen%2Fabout-slu%2Fcontact-slu%2Fpersonal-data%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=EFcR%2FMNefoL21Ut8N5tNz3njg61ygxgNHClevABEziw%3D&amp;reserved=0>