PDA

View Full Version : Decoding extended ascii



waynew
24th March 2010, 12:26
I have a response coming back from a website that I am receiving as follows:



QList<QString> list;
QByteArray result = reply->readAll();
QString data;

for (int i=0; i<result.size(); i++) {
data = result[i];
list.append(data);
}


The list is populated ok, as one long QString. The data looks ok. The problem is that the fields are delimited with extended ascii characters, such as ascii(184), ascii(185), etc.
and these show up in the data QString as the ascii characters, not 184, 185, etc.
So how can I set the coding of QString so the extended ascii characters show up as 184, 185, etc?