How do I write a std::codecvt facet?

Posted by Billy ONeal on Stack Overflow See other posts from Stack Overflow or by Billy ONeal
Published on 2010-06-04T03:48:05Z Indexed on 2010/06/06 20:52 UTC
Read the original article Hit count: 338

Filed under:
|
|

How do I write a std::codecvt facet? I'd like to write ones that go from UTF-16 to UTF-8, which go from UTF-16 to the systems current code page (windows, so CP_ACP), and to the system's OEM codepage (windows, so CP_OEM).

Cross-platform is preferred, but MSVC on Windows is fine too. Are there any kinds of tutorials or anything of that nature on how to correctly use this class?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows