如何在 embarcadero 中将 Unicode 字符串转换为 char*
或 char* const
C++ ?
最佳答案
String text = "Hello world";
char *txt = AnsiString(text).c_str();
Older text.t_str() is now AnsiString(String).c_str()
关于c++ - 将 unicode 转换为 char,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11040703/