summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringconverter.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-17 19:48:33 +0200
committerLars Knoll <lars.knoll@qt.io>2020-05-14 07:46:51 +0200
commit7b93bedb602724b80c03a55419cfcd33d9a70cc3 (patch)
tree242c7f3a1428d50db3b68cb06b033d3ef25f7d70 /src/corelib/text/qstringconverter.h
parent94e210faeaf7ec6b8a41d7f707405d99be25e3f0 (diff)
Add Latin1 to the set of supported encodings in QStringConverter
Latin1 is the only non Unicode encoding that is still being used to some extent. Current web site statistics show that it is being used in ~2% of all web sites. An additional 1% of web sites use Windows1251 (which is almost the same as latin1). As it's trivial to support this encoding, we keep it supported in QStringConverter. Change-Id: I0eff53a490b6c43d3e474107e7823be245d1715a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qstringconverter.h')
-rw-r--r--src/corelib/text/qstringconverter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/text/qstringconverter.h b/src/corelib/text/qstringconverter.h
index d3c0e9a502..87fb7fc06a 100644
--- a/src/corelib/text/qstringconverter.h
+++ b/src/corelib/text/qstringconverter.h
@@ -96,6 +96,7 @@ public:
Utf32,
Utf32LE,
Utf32BE,
+ Latin1,
Locale,
LastEncoding = Locale
};