Extended Ascii Codes in QTextEdit
-
I found this table:
and you get the characters with the matching decimal code
-
This post is deleted!
-
This post is deleted!
-
Explanation: I have a file with hex bytes equal to 93, 94, 96 ... and I would like to display the matching characters into a QTextEdit.
-
I found the solution in adding fromLatin1()
-
With fromLatin1(), it's better: I have no more losange with ? but, for example hex codes 93 and 94 are not displayed.
-
From Wikipedia, I copy and paste some text.
In this text I have the character (Hex 92) (') and the character (Hex E9) (é).
The second one is displayed. The first one is replaced by a chinese character.
Why ? -
I think having found the perfect solution :)
I copied and pasted many articles from Wikipedia in French, English and German and it runs.
The solution is to use:FromLocal8Bit()
-
As long as it works for you. I wouldn't depend on the local 8bit encoding myself, but that's just me.
-
@kshegunov That's the only way to make it perfectly running. Do you have other idea in mind ?