Results 1 to 3 of 3

Thread: QDomElement latin characters

  1. #1
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default QDomElement latin characters

    Hi,

    I'm trying to get strings from an Xml file with latin characters and I tried to use QDom system.

    But QDomElement:text(): giver back a QString; if I convert it after to Latin1 the "special characters" are shown as "?".

    It doesn't seem to have a way to get a QByteArray from a QDomElement... and I don't want to use text stream.

    Do I have any other exit?

    thanks a lot!

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: QDomElement latin characters

    Sorry, I wanted to post it in the QtProgramming forum. Can you move it?

    Thanks, and sorry.

  3. #3
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: QDomElement latin characters

    Ok, I have it. I didn't give a format to mi Xml file so it was ANSII because it's the Window's standard. I changed it to UTF8 and everything goes right.

Similar Threads

  1. Qt and Serbian Latin alphabet
    By frenk_castle in forum Newbie
    Replies: 3
    Last Post: 15th December 2009, 22:34
  2. Attributes order in QDomElement
    By ixSci in forum Qt Programming
    Replies: 3
    Last Post: 21st August 2009, 13:52
  3. QDomElement::elementsByTagName()
    By manojmka in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2008, 11:43
  4. QDomElement
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2007, 12:55
  5. QDomElement to QByteArray ?
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 2nd May 2006, 17:01

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.