【发布时间】:2013-06-15 07:22:24
【问题描述】:
这是我得到的错误。 为了解释,我想打印根据http://www.endmemo.com/unicode/unicodeconverter.php的→字符
代码是 2192。但如果是这样,我可能使用了错误的代码,正确的打印方式是什么→。
int _tmain(int argc, _TCHAR* argv[])
{
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
cout<<"\x2192"<<endl;
SetConsoleOutputCP(oldcp);
return 0;
}
【问题讨论】:
-
在 UTF-8 中不是
2912。