The codecForTr() should be utf8
tr() assumes utf8 as input encoding, not latin1. Change-Id: If834f8c169bdb431d78713d14b03542d3a7ca8e4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b2412843cb
commit
587b80f67d
@ -73,7 +73,7 @@ public:
|
||||
static void setCodecForLocale(QTextCodec *c);
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED static QTextCodec *codecForTr() { return codecForMib(4); /* Latin1 */ }
|
||||
QT_DEPRECATED static QTextCodec *codecForTr() { return codecForMib(106); /* Utf8 */ }
|
||||
#endif
|
||||
|
||||
static QTextCodec *codecForHtml(const QByteArray &ba);
|
||||
|
Loading…
Reference in New Issue
Block a user