How do I obtain a code point integer from a 1 to 4 byte UTF-8 encoded sequence in Windows?

Posted by Patrick Niedzielski on Stack Overflow See other posts from Stack Overflow or by Patrick Niedzielski
Published on 2010-06-08T21:24:57Z Indexed on 2010/06/08 21:42 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

Hello,

I am Patrick Niedzielski, a programmer for the Free Software 3D adventure game Humm and Strumm. I'm working on a minimal Unicode character class in C++. I currently have an array of four bytes representing a UTF-8 sequence.

On GNU/Linux, I can just convert to UTF-32 with iconv(), but on Windows, I cannot do this. Is it possible to convert the array to a single code point?

Thanks, Patrick

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows