• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JSONObject for Non-ascii text

 
An Dao
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set a string in Java class and then display it in the html page. However, as my site can be localized to different language, so the string to be put in JSONObject can be non-ascii code, it can be english, russian, chinese, etc..
When I try to put these character set into JSON and display it in my html page, the non-ascii text display incorrectly.

Please help!



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Linda", please check your private messages for an important administrative matter.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there! I suggest you start here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic