0

I have a QByteArray that has "C2 A0" in it that when converted to a QString makes "=C2=A0". I remove this "=C2=A0" and replace it with a space before I send it to be converted to a PDF. Problem is I always get the  in the resultant PDF. I have tried all kinds way to try and fix this. The file I send the pdf conversion service is verified not to have the "=C2=A0" in it yet it still appears. I need to remove this "C2 A0" from the QByteArray before converting to a QString. Is there a function where I can remove those bytes before the conversion to QString? I opened the file in a Mac hex editor and even with the "=C2=A0" removed the "C2 A0" is still there. I need to remove this bytes for proper conversion.

This answer isn't helping me: What is "=C2=A0" in MIME encoded, quoted-printable text?

4

0 回答 0