iphone - Non english character in NSString -


in application server give response text in non english characters. parse data , store in string.

i want string operation on string due non english characters, got error , crash.

specially happen when hindi characters available in response.

please me.

thanks in advance.

the problem way getting data server , storing in nsstring. might decoding data ascii characterset.

try nsutf8stringencoding. solve problem:

nsstring *string =  [[nsstring alloc] initwithdata:data encoding:nsutf8stringencoding]; 

Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -