I have an NSString that internally uses UTF16 encoding. I want to covert it to use UTF32 , so that
or q both take single index. Currenty takes 2.
How to do this ?. Even if I can convert to some other type from NSString it will work. Bottom line is to have or q take equal number of indexes in an array.
Have you tried
[[NSString alloc]initWithData:encoding:]?Example would be:
Create your
NSUTF32StringEncodedstring from the data above