Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Display original utf-8 string #11

Open
sodastsai opened this Issue · 3 comments

3 participants

@sodastsai

Hello, I'm a happy user with your safari extension.
I'm a iOS and django developer.
The django side will output JSON format to iOS side.
Your extension helps me a lot while checking the content django returned.

But currently, I have to check some JSON output with some UTF-8 Chinese string.
for example:
{"patientType": "\u9580\u8a3a"}
which should be
{"patientType": "門診"}

I have no idea how to solve this in an extension development.
But I hope one day I can use your extension for checking JSON with non-English content.
Thanks very much.

@sodastsai

I found that it's quite easy fix this by adding a line
obj = eval('"'+obj+'"');
in renderString function before the return line.
the eval will make \u9580 to its original value in Chinese.

@ramm

Yeah, this is a bit frustrating.

@ikodota

我也遇到同样问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.