From a1f9149ac75f08877074d4898399b46943eb9cd2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 25 Jun 2012 12:47:51 +0200 Subject: [PATCH] Small documentation fix about the text streams default encoding. It's UTF-8, not Latin1 on most systems nowadays. Only Windows still living in the past... Change-Id: I70f1bd7a49bed6dcc8e39bbc0f0613475791afdb Reviewed-by: Thiago Macieira --- src/corelib/io/qfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index 193ebe96b8..22b8ae5d2d 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -163,8 +163,8 @@ QAbstractFileEngine *QFilePrivate::engine() const QTextStream takes care of converting the 8-bit data stored on disk into a 16-bit Unicode QString. By default, it assumes that - the user system's local 8-bit encoding is used (e.g., ISO 8859-1 - for most of Europe; see QTextCodec::codecForLocale() for + the user system's local 8-bit encoding is used (e.g., UTF-8 + on most unix based operating systems; see QTextCodec::codecForLocale() for details). This can be changed using setCodec(). To write text, we can use operator<<(), which is overloaded to