QT界面:Error: Could not decode “*.cpp“ with “UTF-8“ - encoding. Editing not possible

打开Qt工程,标题出现:
在这里插入图片描述
出现中文乱码或者禁止编辑。

点击 【select encoding】,或选【编辑】——>【select encoding】

QT界面:Error: Could not decode “*.cpp“ with “UTF-8“ - encoding. Editing not possible_第1张图片

如果有 “UTF-8”,就选 “UTF-8”, 没有就选择“System”, 然后【按编码重新载入】
QT界面:Error: Could not decode “*.cpp“ with “UTF-8“ - encoding. Editing not possible_第2张图片
如果既没有 “UTF-8”,也没有“System”:
QT界面:Error: Could not decode “*.cpp“ with “UTF-8“ - encoding. Editing not possible_第3张图片

可以用Notepad打开对其进行转换:
QT界面:Error: Could not decode “*.cpp“ with “UTF-8“ - encoding. Editing not possible_第4张图片

你可能感兴趣的:(QT,qt,开发语言)