0

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!

4

1 回答 1

0

您可以使用 ICU 库。此外,您可以编写自己的函数来转换为 UTF-16。

如果你想使用 Objective-C 如果你可以将字符串转换为 NSString,那么你可以使用 -cStringUsingEncoding 方法轻松地转换为其他编码。

于 2013-08-19T09:33:07.627 回答