Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.8.0
-
None
-
Windows 10
-
-
967e8cf260 (qt-creator/qt-creator/9.0) 967e8cf260 (qt-creator/qt-creator/master) 967e8cf260 (qt-creator/qt-creator/qds/dev)
Description
I'm in the process of changing the file encoding of my project from my system's default encoding (CP1252) to UTF-8 so that my compiler better supports Qt5. Not all of my projects yet support UTF-8, so my global encoding is still System (CP1252).
When I view the Git Diff output by double-clicking on a file in the Git Commit dialog, my project-specific file encoding setting is ignored and it's using the global encoding instead. As a result, the non-ANSI symbols in my string literals look garbled after I run iconv. Changing the global file encoding to match my project fixes this.
Diff results with Project File Encoding = UTF-8 and Global File Encoding = System (CP1252):
Diff results with Project File Encoding = UTF-8 and Global File Encoding = UTF-8:
The latter is the correct result.