JSONParser and chinese display error!

xalion

Member
Licensed User
Longtime User
change the example.json as :
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "文件", "onclick": "CreateNewDoc()"},
{"value": "打开", "onclick": "OpenDoc()"},
{"value": "关闭", "onclick": "CloseDoc()"}
]
}
}}


and run the example.

it displays chinses as �ļ�
 

jeffrey8227

Member
Licensed User
Longtime User
文件——另存为——编码,选择utf-8
只要手机用的,无论是ppc还是android系统的机器都要用utf-8编码!
 

xalion

Member
Licensed User
Longtime User
Thanks, It works fine now.
I had test it with UTF with BOM.
now It works with UTF without BOM.
 
Top