View Full Version : parsing using QDOM
aruna
17th July 2007, 12:37
I am using QDOMDocument for parsing xml file ,if i use UTF-8 as encoding it works fine.
but if i use UTF-16 as encoding it doesn't read the file ,the function i am using is
setContent(QFile file);
If anybody have done any R&D on this,please let me know?
Thanks in advance.
patrik08
17th July 2007, 12:46
I am using QDOMDocument for parsing xml file ,if i use UTF-8 as encoding it works fine.
but if i use UTF-16 as encoding it doesn't read the file ,the function i am using is
setContent(QFile file);
If anybody have done any R&D on this,please let me know?
Thanks in advance.
Build http://tidy.sourceforge.net/ tidy for qt4 ....
svn co https://qt-webdav.svn.sourceforge.net/svnroot/qt-webdav/lib_tidy_src/ lib_tidy_src
Tidy XML your file from auto -> utf-8 ... or numeric asci to save all language from universe :rolleyes:
utf-8 is standard and display all language ...
or work on QTextCodec QTextStream
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.