[Qt-interest] Reading text files in Windows using QTextStream doesn't work with unicode

Malyushytsky, Alex alex at wai.com
Fri Jan 21 02:48:05 CET 2011


You might find it interesting:
http://www.codeproject.com/KB/recipes/DetectEncoding.aspx

Alex

From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Malyushytsky, Alex
Sent: Thursday, January 20, 2011 5:34 PM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] Reading text files in Windows using QTextStream doesn't work with unicode

>> Is there a way to automatically detect (or try to detect) the encoding of a file?

As far I understand, no.
You may guess, as browsers usually try ( check encoding menu in explorer for example), but there is no guarantee.

Alex


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110120/7e8bba14/attachment.html 


More information about the Qt-interest-old mailing list