Make it support non-English language (like Chinese)#18
Conversation
…e English language, e.g. Chinese.
|
Looks about right. |
Make it support non-English language (like Chinese)
|
@terryyin Thank you. There are more occurrences of |
|
Oh, sure. On 2013-6-26, at 下午6:22, Filip Noetzel notifications@github.com wrote:
|
|
I have found the POST and Get keyworks doesn't support chinese, it will fail if the body contains chinese chars, and how can I work around or fix this issue, can you give me some suggestion? |
|
Have you tried if it works for Python3? If yes, it's a encoding problem. |
|
no, i am running python 2.7.2, haven't gotten a plan to upgrade python. Truely it is a encoding problem, the error message is "UnicodeDecodeError: 'ascii' codec can't decode byte ..." when the POST keyword was invoked. and I found the request body contained some non-ascii chars, I think it is a encoding problem but i am not familar with python, shall I need to modify the source code or some tricks can work around it, can you give me some more adivces? it will be very appreciate, thank you. |
The "Get Json Value" api now will dump the Json part into a string. For English it's still no too inconvenient to check the value (just add the quote). But Chinese will be transformed into something like "\u8fcd". So make the dumps not ensure ascii.