[Openstack] Openstack swift charset problem

Samuel Merritt sam at swiftstack.com
Fri Apr 3 18:29:40 UTC 2015


On 4/3/15 1:42 AM, mehmet hacısalihoğlu wrote:
> Hi All,
>
> When I request send to create pseudo folder with turkish characters in
> windows, I get error message "Invalid UTF8 or contains NULL".
>
> curl -i -X PUT http://1X.XX.XXX.XX/v1/AUTH_test/test/çöçö
> <http://1x.xx.xxx.xx/v1/AUTH_test/test/%C3%A7%C3%B6%C3%A7%C3%B6> -H
> "Content-Type: application/directory" -H "Content-Length: 0" -H
> "X-Auth-Token: abc12345"
> *HTTP/1.1 412 Precondition Failed*
> Content-Length: 29
> Content-Type: text/html; charset=UTF-8
> Date: Fri, 03 Apr 2015 08:26:26 GMT
>
> How can I solve this problem?

Swift object names must be valid UTF-8 strings. Whatever bytes you're 
sending for the object name are not valid UTF-8; they look like UTF-16 
to me. It's probably a matter of fixing your terminal settings.




More information about the Openstack mailing list