在使用eigen库时,编译器警告信息如下:
warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
该信息建议将文件保存为Unicode格式。具体的保存方式如下:
1.打开报错的具体文件,在Microsoft Visual Studio中,可以双击下方的warning打开该文件
2.在工具栏中依次点击:file→save xxx.h as→Save with Encoding
3.在下拉菜单中选择unicode (UTF-8 with signature) - Codepage 65001,保存后重新编译运行即可