[solved] Read/Write Non-ASCII Characters
-
I'm having trouble reading and writing non-ASCII Characters
My input file looks like this:
Årning
Framsle
Læsten
Tønele
Røbtoft
Skærbæk
Falling
Loskær
etc...But after reading it in using "QString contents = file.readAll();" I get:
�rning
Framsle
L�sten
T�nele
R�btoft
Sk�rb�k
Falling
Losk�rIs there any way to get QT to recognize these characters?
-
Hi and welcome to devnet,
You should use a QTextStream where you set the correct codec to use to parse your file
-
Thanks! It works with codec ISO 8859-1
-
You're welcome !
Now that it is working for you, please update the thread title prepending [solved] so other forums users may know a solution has been found :)