I need to convert ut8 (currently read in by a QTextStream readLine() ) to ascii text:
1) if ascii (<=7F), then just use the ascii value so 'a' to 'a'
2) if not ascii then convert utf8 to '/u' followed by the hex value wxyz.
For example the Euro symbol would be the 6 ascii charaters '/u20AC'

I also have to go the other way where I have the string '/u20AC' and want to output as utf8 for the Euro.

I am having troubles determining whether QT string functions can help me with this or not.

It looks like if I use 'toUtf8 I will get a byte array with the euro as bytes E2 82 AC and could parse manually, but that is a bunch of work.

Is there a way I can get the unicode hex values from the utf8 QString?