Results 1 to 2 of 2

Thread: encoding iso-8859-2 to Utf8

  1. #1
    Join Date
    Apr 2009
    Posts
    75
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default encoding iso-8859-2 to Utf8

    Hi!

    I've read a XML file.
    There is a part:
    Qt Code:
    1. <?xml version="1.0" encoding="iso-8859-2"?>
    To copy to clipboard, switch view to plain text mode 
    so the XML is encoding by iso-8859-2

    my application (app, data base itp..) is encoding in Utf8, how to convert iso string to utf8 string?

  2. #2
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: encoding iso-8859-2 to Utf8

    Hi TomASS,

    This it is not my specialty but perhaps you can use QTextCodec and QString to do what you want.
    These classes provides conversions between text encodings.
    I think that this can be a beginning for you solve your problem.

Similar Threads

  1. UTF8 to ISO 8859... conversion
    By claudio in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2007, 21:24
  2. Detect utf8 text/html bool....
    By patrik08 in forum Newbie
    Replies: 2
    Last Post: 2nd June 2006, 11:39

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.