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
Post a Comment