Json parsing with unicode characters

后端 未结 6 1058
太阳男子
太阳男子 2020-12-21 09:22

i have a json file with unicode characters, and i\'m having trouble to parse it. I\'ve tried in Flash CS5, the JSON library, and i have tried it in http://json.parser.online

6条回答
  •  生来不讨喜
    2020-12-21 10:06

    If you seem to have trouble with the encoding of a JSON file (i.e. escaped codes such as \u00fc aren't displayed correctly regardless of your editor's encoding setting) generated by Python with json.dump s(): it encodes ASCII by default and escapes the unicode characters! See python json unicode - how do I eval using javascript (and python: json.dumps can't handle utf-8? and Why does json.dumps escape non-ascii characters with "\uxxxx").

提交回复
热议问题