Docs: uppercase spelling of utf-8

It should be spelled UTF-8 (official name by the Unicode Consortium).

Pick-to: 6.9 6.8
Change-Id: Ib358d0870e77f0cb4cdb920ed5ca829f100707a1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2025-02-24 15:49:22 +01:00
parent e84145d6c1
commit 0770171dcd
6 changed files with 9 additions and 9 deletions

View File

@ -2463,11 +2463,11 @@ void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,
"%General" section, \e not in the "General" section. "%General" section, \e not in the "General" section.
\li In line with most implementations today, QSettings will assume that \li In line with most implementations today, QSettings will assume that
\e values in the INI file are utf-8 encoded. This means that \e values \e values in the INI file are UTF-8 encoded. This means that \e values
will be decoded as utf-8 encoded entries and written back as utf-8. will be decoded as UTF-8 encoded entries and written back as UTF-8.
To retain backward compatibility with older Qt versions, \e keys in the To retain backward compatibility with older Qt versions, \e keys in the
INI file are written in %-encoded format, but can be read in both INI file are written in %-encoded format, but can be read in both
%-encoded and utf-8 formats. %-encoded and UTF-8 formats.
\endlist \endlist
@ -2478,7 +2478,7 @@ void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,
however fully readable by a Qt 6 based application (unless a ini codec however fully readable by a Qt 6 based application (unless a ini codec
different from utf8 had been set). But INI files written with Qt 6 different from utf8 had been set). But INI files written with Qt 6
will only be readable by older Qt versions if you set the "iniCodec" to will only be readable by older Qt versions if you set the "iniCodec" to
a utf-8 textcodec. a UTF-8 textcodec.
\sa registerFormat(), setPath() \sa registerFormat(), setPath()
*/ */

View File

@ -835,7 +835,7 @@ QByteArray qUncompress(const uchar* data, qsizetype nbytes)
\endcompareswith \endcompareswith
\compareswith strong QChar char16_t QString QStringView QLatin1StringView \ \compareswith strong QChar char16_t QString QStringView QLatin1StringView \
QUtf8StringView QUtf8StringView
When comparing with string types, the content is interpreted as utf-8. When comparing with string types, the content is interpreted as UTF-8.
\endcompareswith \endcompareswith
QByteArray can be used to store both raw bytes (including '\\0's) QByteArray can be used to store both raw bytes (including '\\0's)

View File

@ -57,7 +57,7 @@ QT_BEGIN_NAMESPACE
\compareswith strong char16_t QString QStringView QLatin1StringView QUtf8StringView \compareswith strong char16_t QString QStringView QLatin1StringView QUtf8StringView
\endcompareswith \endcompareswith
\compareswith strong {const char *} QByteArray QByteArrayView \compareswith strong {const char *} QByteArray QByteArrayView
The contents of the byte array is interpreted as utf-8. The contents of the byte array is interpreted as UTF-8.
\endcompareswith \endcompareswith
In Qt, Unicode characters are 16-bit entities without any markup In Qt, Unicode characters are 16-bit entities without any markup

View File

@ -16,7 +16,7 @@
{const char16_t *} {const char16_t *}
\endcompareswith \endcompareswith
\compareswith strong {const char *} QByteArray QByteArrayView \compareswith strong {const char *} QByteArray QByteArrayView
The byte array data is interpreted as utf-8. The byte array data is interpreted as UTF-8.
\endcompareswith \endcompareswith
Many of QString's member functions are overloaded to accept Many of QString's member functions are overloaded to accept

View File

@ -1709,7 +1709,7 @@ void qtWarnAboutInvalidRegularExpression(const QString &pattern, const char *whe
QStringView QUtf8StringView QStringView QUtf8StringView
\endcompareswith \endcompareswith
\compareswith strong QByteArray QByteArrayView {const char *} \compareswith strong QByteArray QByteArrayView {const char *}
When comparing with byte arrays, their content is interpreted as utf-8. When comparing with byte arrays, their content is interpreted as UTF-8.
\endcompareswith \endcompareswith
QString stores a string of 16-bit \l{QChar}s, where each QChar QString stores a string of 16-bit \l{QChar}s, where each QChar

View File

@ -16,7 +16,7 @@
QLatin1StringView QLatin1StringView
\endcompareswith \endcompareswith
\compareswith strong {const char *} QByteArray QByteArrayView \compareswith strong {const char *} QByteArray QByteArrayView
The contents of byte arrays is interpreted as utf-8. The contents of byte arrays is interpreted as UTF-8.
\endcompareswith \endcompareswith
A QUtf8StringView references a contiguous portion of a UTF-8 A QUtf8StringView references a contiguous portion of a UTF-8