how to get UTF-16 from NSString
I have a line of code:
const char *cStr = [clearText UTF8String];
and I want to get the utf16string instead, but can't find an easy way to do this. I know NSString uses UTF-16 internally so I can't figure why this is so difficult.
|