Read Unicode UTF-8 file into wstring

前端 未结 6 1765
无人及你
无人及你 2020-11-30 00:26

How can I read a Unicode (UTF-8) file into wstring(s) on the Windows platform?

6条回答
  •  被撕碎了的回忆
    2020-11-30 01:10

    This question was addressed in Confused about C++'s std::wstring, UTF-16, UTF-8 and displaying strings in a windows GUI. In sum, wstring is based upon the UCS-2 standard, which is the predecessor of UTF-16. This is a strictly two byte standard. I believe this covers Arabic.

提交回复
热议问题