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
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] REST problems with capital letters
- From: Christer Enkvist <christer.enkvist@slu.se>
- Date: Tue, 19 Feb 2019 13:03:57 +0000
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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=Zq2dR69FIiqLuv8VpDUumRB8rMr3p6L8Hd3dzcPv4zw%3D&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&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca2c4ab121ba5483d56d508d6966ab700%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=EFcR%2FMNefoL21Ut8N5tNz3njg61ygxgNHClevABEziw%3D&reserved=0>
- Follow-Ups:
- [EP-tech] REST problems with capital letters
- From: Christer Enkvist <christer.enkvist@slu.se>
- [EP-tech] REST problems with capital letters
- References:
- [EP-tech] REST problems with capital letters
- From: Christer Enkvist <christer.enkvist@slu.se>
- [EP-tech] REST problems with capital letters
- Prev by Date: [EP-tech] Open Acces URL
- Next by Date: Re: [EP-tech] Open Acces URL
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):