Handling UTF-8 in C++

前端 未结 3 2109
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 17:15

To find out if C++ is the right language for a project of mine, I wanna test the UTF-8 capabilities. According to references, I built this example:

#include          


        
3条回答
  •  不知归路
    2020-12-16 17:55

    Don't use wstring on Linux.

    std::wstring VS std::string

    Take a look at first answer. I'm sure it answers your question.

    1. When I should use std::wstring over std::string?

    On Linux? Almost never (§).

    On Windows? Almost always (§).

提交回复
热议问题