PDA

View Full Version : encoding iso-8859-2 to Utf8



TomASS
12th November 2009, 13:15
Hi!

I've read a XML file.
There is a part:

<?xml version="1.0" encoding="iso-8859-2"?>
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?

vcp
12th November 2009, 19:01
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.