What is .Net Unicode Encoding's equivalent in Objective-C? -
what equivalent in objective-c of .net's system.text.encoding.unicode? have tried:
- nsunicodestringencoding
- nsutf8stringencoding
- nsutf16stringencoding
none of above converted text correctly.
according http://msdn.microsoft.com/de-de/library/system.text.encoding.unicode.aspx, system.text.encoding.unicode little-endian utf-16 encoding. equivalent nsstring encoding nsutf16littleendianstringencoding.
nsutf16stringencoding almost same, prepends unicode byte-order marker (bom) ff fe data. (and strictly speaking, not documented nsutf16stringencoding uses little-endian, explicit nsutf16littleendianstringencoding should used anyway.)
Comments
Post a Comment