C++ & Boost: encode/decode UTF-8

前端 未结 4 2054
南方客
南方客 2020-12-01 06:29

I\'m trying to do a very simple task: take a unicode-aware wstring and convert it to a string, encoded as UTF8 bytes, and then the opposite way aro

4条回答
  •  感情败类
    2020-12-01 07:21

    For a drop-in replacement for std::string/std::wstring that handles utf8, see TINYUTF8.

    In combination with you can convert pretty much from/to every encoding from/to utf8, which you then handle through the above library.

提交回复
热议问题