C++ strings: UTF-8 or 16-bit encoding?

后端 未结 8 1683
广开言路
广开言路 2021-02-04 09:42

I\'m still trying to decide whether my (home) project should use UTF-8 strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or s

8条回答
  •  面向向阳花
    2021-02-04 10:40

    If you decide to go with UTF-8 encoding, check out this library: http://utfcpp.sourceforge.net/

    It may make your life much easier.

提交回复
热议问题