PDA

View Full Version : Convert Unicode data to Actual data



sanjeet
23rd August 2016, 07:43
Hi,

I want to Convert Unicode String to Actual string, here Unicode data is present in one file like(unicode.txt).
I am trying to read data from and storing in string, Now That string contains unicode data.Now I want to convert That string to actual data and print that String.

Can anyone Please provide a solution?

Lesiok
23rd August 2016, 09:15
What it is "actual data" ?

anda_skoa
23rd August 2016, 10:00
And there is no single encoding named "unicode" but a whole set of them.

Cheers,
_

sanjeet
23rd August 2016, 13:14
I am getting input of bengali text in the form of Utf-8 encoding,and i want to convert the Utf-8 encoding to original bengali text i.e actual string in my post

anda_skoa
23rd August 2016, 13:28
QTextStream::setCodec() and obviously QFile for the actual file access.

Cheers,
_