From 0368b02559793da268bc29613147231d82039772 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 6 Oct 2020 16:53:17 +0200 Subject: [PATCH] Doc: Remove outdated info about default encoding The Default encoding field now seems to correctly display UTF-8. Added a screenshot. Task-number: QTCREATORBUG-24529 Change-Id: I2d7b240f9862afeb05c1ac359efe262206569235 Reviewed-by: Eike Ziller --- ...ptions-texteditor-behavior-file-encodings.png | Bin 0 -> 3006 bytes .../editors/creator-editors-options-text.qdoc | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 doc/qtcreator/images/qtcreator-options-texteditor-behavior-file-encodings.png diff --git a/doc/qtcreator/images/qtcreator-options-texteditor-behavior-file-encodings.png b/doc/qtcreator/images/qtcreator-options-texteditor-behavior-file-encodings.png new file mode 100644 index 0000000000000000000000000000000000000000..3fc01471952581ed07a7af427af62ac9e5c7414a GIT binary patch literal 3006 zcmeAS@N?(olHy`uVBq!ia0y~yV9aD-V5s9@W?*2r$SCldfq}^U#nr}A|nv+Gcw9D@@q57 zT4W3Y{>H}H#{O-_*^5j-Ai%^V+a#dfBzv)`si~QnnYp>Sm6esXwY80njjgS%ot>S% zy}g5jgQKIPi;Ih!o1444yN8E|r>CcvmzTGMYrY{Jz`erWlZQbi< zXy|9?=VzGdXJq7Ol;sBkt$u!OewmB>S{M1X?(=Kg=WlH6Z|n~SZT@Zh0!&N-+V`cl z?#%@GCo|K~Fw?g+)2}r%b5UmN-pqvyGZ)^(;`|TZ=MpEy}vJIQ!P#)?52pZ|!TlwXglwEs(oz-CBI>7Rbn3w{Ec= zQi)?=;MDbWaSW-r^>%J|v`DB#`@!4mbQW)7dTrV(@PSK9Nw+CMFD#-ZY{n9`$gl;m zI!pIN2WfIta<0_TVm`U#$ud2Shkuf5?^_n9rA?2Ga7&wZbKm{X1v4y*%Z`@wKR@$$ z-)~9vz%`ySiVBxpW;rd%b*?%$w~0ee@TP{B$EDg$I{a_<1TQk2(;VBM?L1je@tT{b z_LGv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ires UTF-8 encoded source files, and therefore the default encoding - was changed from \uicontrol System to \uicontrol UTF-8 in \QC version 2.6. - However, the \uicontrol {Default encoding} field still displays the value - \uicontrol System if the default system encoding is set to UTF-8. + \image qtcreator-options-texteditor-behavior-file-encodings.png "File encoding options" + Qt 5 and Qt 6 require UTF-8 encoded source files, and therefore the default + encoding is set to \uicontrol UTF-8. Detecting the correct encoding is tricky, so \QC will not try to do so. Instead, it displays the following error message when you try to edit a file that is not UTF-8 encoded: \uicontrol {Error: Could not decode "filename" with