The encoding for the files is known, but i don't know how can i use the coding to read the file. I need to encode at this place char c = entire[i]; Ther is no problem to use QChar if that mouch more easy to handle! You understand my problem?
The encoding for the files is known, but i don't know how can i use the coding to read the file. I need to encode at this place char c = entire[i]; Ther is no problem to use QChar if that mouch more easy to handle! You understand my problem?
Not really.You understand my problem?
Why don't you just do exactly as shown in QTextCodec documentation?
If you know the file encoding, then I still fail to understand your problem, unless your encoding is not supported by QTextCodec.
From the docs:
Qt Code:
To copy to clipboard, switch view to plain text mode
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
You may want to replace the QIODevice with a QTextStream and then use QTextStream::setCodec
Bookmarks