[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=dfm%2BbZ%2F5CxSaj6KEhtQqhpH3%2FlhEwrF4EWq2JtwXdGU%3D&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>