相关疑难解决方法(0)

如何在c ++中使用utf8字符数组?

是否有可能char *在C++(VC2010)中使用utf8编码?

例如,如果我的源文件保存在utf8中,我写的是这样的:

const char* c = "aäáéö?";
Run Code Online (Sandbox Code Playgroud)

这有可能使它成为utf-8编码?如果是的话,怎么可能使用

char* c2 = new char[strlen("aäáéö?")];
Run Code Online (Sandbox Code Playgroud)

如果字符可以是可变长度的动态分配?

c++ utf-8

14
推荐指数
1
解决办法
3万
查看次数

标签 统计

c++ ×1

utf-8 ×1