dev cpp 保存和打开相同编码格式的文件
dev cpp Save and open files with same encoding format
我在visual studio代码中用utf-8写的代码是这样的
cout << "你好,世界!" << endl;
但是用dev-c++打开文件中文会变成这样
cout << "��ã����磡" << endl;
有没有办法让他们以相同的格式打开文件?
目前 Dev-C++ 似乎不支持 UTF-8 编码,如 this ticket from 2016. The discussion there points to this link 2013 年有人所说:
Currently, it is not possible to read or write UTF-8 files using Dev-C++. Sorry about that.
At the moment, there are no plans to support non-ANSI encodings.
我在visual studio代码中用utf-8写的代码是这样的
cout << "你好,世界!" << endl;
但是用dev-c++打开文件中文会变成这样
cout << "��ã����磡" << endl;
有没有办法让他们以相同的格式打开文件?
目前 Dev-C++ 似乎不支持 UTF-8 编码,如 this ticket from 2016. The discussion there points to this link 2013 年有人所说:
Currently, it is not possible to read or write UTF-8 files using Dev-C++. Sorry about that. At the moment, there are no plans to support non-ANSI encodings.