문제

I know code page of the input string, for example CP 852, now I need to make it to the universal UCS-4 format. What function I should use. I'm doing it under WinXP with MingW.

도움이 되었습니까?

해결책

If you are really sure you want UTF-32 encoded strings (and I suggest doing some research first - it is almost always a bad choice), you can start with MultiByteToWideChar function to convert the CP 852 encoded string to UTF-16, and then write your own function to convert UTF-16 to UTF-32.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top