Converting unicode strings and vice-versa

前端 未结 6 845
谎友^
谎友^ 2020-12-05 03:05

I\'m kind of new to using Unicode string and pointers and I\'ve no idea how the conversion to unicode to ascii and versa-versa works. Following is what I\'m trying

6条回答
  •  情书的邮戳
    2020-12-05 04:05

    The solutions are platform-dependent. On Windows use MultiByteToWideChar and WideCharToMultiByte API functions. On Unix/linux platforms iconv library is quite popular.

提交回复
热议问题