Results 1 to 2 of 2

Thread: parsing using QDOM

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default parsing using QDOM

    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.

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: parsing using QDOM

    Quote Originally Posted by aruna View Post
    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.ne.../lib_tidy_src/ lib_tidy_src

    Tidy XML your file from auto -> utf-8 ... or numeric asci to save all language from universe

    utf-8 is standard and display all language ...


    or work on QTextCodec QTextStream

Similar Threads

  1. Problem in XML parsing ";" (semicolon) char
    By the_bis in forum Qt Programming
    Replies: 7
    Last Post: 1st June 2007, 11:21
  2. XML Parsing in Qt 3.3
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 18th April 2007, 18:54
  3. Config file parsing
    By Vash5556 in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2006, 23:11
  4. Parsing of Text files in Qt
    By shailesh in forum Qt Programming
    Replies: 3
    Last Post: 21st April 2006, 15:35
  5. HTML Parsing
    By awalesminfo in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2006, 11:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.