0

I have an API that returns JSON, it actually returns it using the default encoding (I believe it's UTF-8), but japanese and arabic characters are displayed as ??? or some junk

My question is: is there an easy way to display japanese characters ? I tried by setting page encoding to UTF-8 but it doesn't work.Can any body suggest solution?

4

1 回答 1

2

如果某处没有错误,它应该可以使用 UTF-8。看:

这是平假名日文字母UTF-8编码页面

所以,我认为你犯了一个错误,或者你的 API 没有完成它的工作。

编辑:

正如 duffymo 在评论您的问题时指出的那样:

JSON 未编码或显示未正确解释它们。只需检查两个点。一个或两个都可能是错误的

于 2012-10-11T12:08:21.853 回答