0

I am getting some data from response which includes some special characters. The text is in Chinese format. Here I have shown the special characters.

Please have a look and advise me how to convert this to Chinese format. It is possible in android using this method

String s = "hhh"; 
s.getBytes("Windows-1252");

Special Characters string is

"P.R. China 100020 中国北京市æœé˜³åŒºæœå¤–大街22å·æ³›åˆ©å   
¤§åަ408室"
KPM
  • 10,558
  • 3
  • 45
  • 66
SURESH SANKE
  • 1,653
  • 17
  • 34
  • Its original text is 中国成都市锦江区东大街紫东楼段11号东方广场A座2203室 – SURESH SANKE May 19 '14 at 09:37
  • 1
    Is that What's your language? What's with all these iOS tags? – Larme May 19 '14 at 09:39
  • The mentioned string is returned as response from DB while accessing as web service. – SURESH SANKE May 19 '14 at 09:42
  • As a advice from my friend I followed Windows 1252 encoding technique for that data.but its not working. – SURESH SANKE May 19 '14 at 09:43
  • `NSWindowsCP1252StringEncoding` (https://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/classes/NSString_Class/Reference/NSString.html)? Could you show more code? – Larme May 19 '14 at 09:44
  • Room 408 Prime Tower, No.22, Chaowai Street, Chaoyang District, Beijing , P.R. China 100020 中国北京市æœé˜³åŒºæœå¤–大街22å·æ³›åˆ©å¤§åަ408室 – SURESH SANKE May 19 '14 at 09:49
  • This is the response from service.O want to convert that string into above mentioned chineese format. – SURESH SANKE May 19 '14 at 09:49

0 Answers0