summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfilesystemmodel
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-04-28 12:08:59 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-04 13:34:03 (GMT)
commit7031e1d110bb1bc97cfe0377adc211030e1e7320 (patch)
treeb1260d28e0865eaab3c91f1330a1df0dca2ba858 /tests/auto/qfilesystemmodel
parent1e0e67406c3865717fef8b98d2c69adbefc54245 (diff)
downloadQt-7031e1d110bb1bc97cfe0377adc211030e1e7320.zip
Qt-7031e1d110bb1bc97cfe0377adc211030e1e7320.tar.gz
Qt-7031e1d110bb1bc97cfe0377adc211030e1e7320.tar.bz2
When data was copied from Mozilla Firefox to Qt, the text format was not valid.
Mozilla encodes the text/html format in UTF16 and adds a BOM, however it doesn't specify the charset in the html header. The fix is to guess the encoding by either charset in the html header or BOM for text/html format, or by BOM for non html formats. This commit adds a new public function QTextCodec::codecForUtfText() which can be used to guess encoding out of the BOM. Task-number: 250555 Reviewed-by: Benjamin Poulain Reviewed-by: Simon Hausmann Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'tests/auto/qfilesystemmodel')
0 files changed, 0 insertions, 0 deletions