AnsweredAssumed Answered

REST API - problem with chinese characters in document name

Question asked by Mario Pham on Jul 21, 2016
Latest reply on Jul 21, 2016 by Matt Marum

Hello all,


I have encountered a problem with REST api and endpoint

GET  /<module>/:record/file/:field 


The problem is that when I am trying to get content of a Note (for example) which has a file with name  你好我数.png,

the headers contain the filename with wrong text  ä½ å¥½æˆ‘æ•°.png. There is no encoding specified that could be used to get back the correct file name.


Did you encounter anything similar with different languages? (Japanese, Korean, Turkish, or any special characters inside of the name).


Below is the whole headers that are returned by the REST endpoint.

Cache-Control: max-age=0, private,


Content-Disposition: attachment;

filename=\"ä½ å¥½æˆ‘æ•°.png\"\r\n

Content-Type: image/png\r\n

Date: Thu, 21 Jul 2016 07:45:49 GMT\r\n

ETag: d41d8cd98f00b204e9800998ecf8427e\r\n

Expires: \r\n

Pragma: \r\nServer: Apache\r\n

Set-Cookie: AWSELB=0D0DF12914ADCE62E114D1B58354EAF33776094F626141D49859A0464948D7495967D0D4E8B66101DEA444F3428CA340E471287EC68FD971F2850A5925B775F4BA0AE0E054;PATH=/;MAX-AGE=60\r\n

Strict-Transport-Security: max-age=31536000\r\n

Vary: Accept-Encoding\r\nX-Application-Server: ondemandeu01-web-2\r\n

X-Content-Type-Options: nosniff\r\n

Content-Length: 211499\r\nConnection: keep-alive\r\n\r\n"