Hello again

I am writing an application that is converting some code from char to ascii to hex as so..

Qt Code:
  1. QString string = (compressed_string2.c_str());
  2. QString res = string.toAscii().toHex();
  3. qDebug() << res;
To copy to clipboard, switch view to plain text mode 

Now my problem is that sometimes I get NULL characters in the code, and therefore I do not parse the rest of the text. for example, my output should be

Qt Code:
  1. 9c00f57b74
To copy to clipboard, switch view to plain text mode 

instead I get

Qt Code:
  1. 9c
To copy to clipboard, switch view to plain text mode 

I am pretty bad with QT. From my investigation so far, the best I can deduce is to use codecForCStrings but for the life of me I can't work it out.

Anyone have any ideas how I can convert the ascii control characters?

thanks

Priceey