我有一个应用程序支持四种语言。在那个时候,当我用中文用户名登录时,它会显示我这样的响应..
[{"0":"41","intid":"41","1":"\u8a00\u3046", "varfirstname":"\u8a00\u3046" ,"2":"\u8a00\u3046" ,"varlastname":"\u8a00\u3046","3":"\u5730","varusername":"\u5730","4":"abc@gmail.com","varemailid":"abc@gmail .com","5":"qwert","varpassword":"qwert","6":"12345","varmobileno":"12345","7":"启用","mobileMessage":"启用","8":"","varphoneno":"","9":"Enable","enumstatus":"Enable","10":"2013-01-30","date_insert":"2013-01-30","11":"2013-01-30","date_edit":"2013-01-30","12":"1.38.28.36","varipaddress":"1.38. 28.36"}]
我想向UITextfield Text显示“varfirstname” 。但是当我在 NSLog 中打印它时,我没有得到任何文本。
NSLog(@"Text is === %@",textfname,text);
如何解码此文本?并在 UITextfield 或 UILabel 上显示。