STL and UTF-8 file input/output. How to do it?

前端 未结 5 425
醉酒成梦
醉酒成梦 2020-12-06 08:15

I use wchar_t for internal strings and UTF-8 for storage in files. I need to use STL to input/output text to screen and also do it by using full Lithua

5条回答
  •  再見小時候
    2020-12-06 08:59

    The easiest way would be to do the conversion to UTF-8 yourself before trying to output. You might get some inspiration from this question: UTF8 to/from wide char conversion in STL

提交回复
热议问题