bastrijan
21st May 2012, 13:36
Hello to everyone,
I've got one problem.
I read one text file that is encoded with ANSI (i.e Windows-1252). The important thing is that the file has Cyrillic content. Because of that the Cyrillic part of the text i get it as question marks (?????).
I want to encode the content with utf8 encoding, in order to get the Cyrillic text back to normal before I put the content into database.
I use QFile to open the file and QTextStream to read the file content
Any suggestions?
Best Regards,
Bastrijan
I've got one problem.
I read one text file that is encoded with ANSI (i.e Windows-1252). The important thing is that the file has Cyrillic content. Because of that the Cyrillic part of the text i get it as question marks (?????).
I want to encode the content with utf8 encoding, in order to get the Cyrillic text back to normal before I put the content into database.
I use QFile to open the file and QTextStream to read the file content
Any suggestions?
Best Regards,
Bastrijan