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 <eike.ziller@qt.io>
This commit is contained in:
Leena Miettinen
2020-10-06 16:53:17 +02:00
parent cc5ac00d19
commit 0368b02559
2 changed files with 3 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -97,11 +97,10 @@
\uicontrol Options > \uicontrol {Text Editor} > \uicontrol Behavior, and
then select a suitable option in \uicontrol {Default encoding}.
Qt 5 requires 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