Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm now trying to convert some mutibyte chars(encoded in code page gb-2312) to UTF-16, is there functions like MultiBytetoWideChar on windows?
I only found a library called iconv, is there other functions?
Thank you!
您可以使用 ICU 库。此外,您可以编写自己的函数来转换为 UTF-16。
如果你想使用 Objective-C 如果你可以将字符串转换为 NSString,那么你可以使用 -cStringUsingEncoding 方法轻松地转换为其他编码。