Hebrew characters disappear when I close the program
-
I am trying to get Hebrew Characters displayed on the console and on my GUI. I have been looking at "this":http://www.qtcentre.org/threads/27944-problem-with-Hebrew-font-in-a-control to try solve the problem. Here is my code @ QByteArray encode = "אב";
QTextCodec* code = QTextCodec::codecForName("UTF-8");
QString string = code->toUnicode(encode);
out << string << endl;
out.flush();@But the Characters keep appearing as "??".
I thought that this was the only problem but I also found that when I exit the program, and then reopen it, the Hebrew characters in the editor appear as "??".
So my question is two-fold: 1) How can I get the Hebrew characters to the console? 2) How do I generate Hebrew characters in the editor that do not disappear when I exit?
Thanks in advance.
PS. Using QT 4.6.3. and Windows 7
-
Thank you for responding. I found the solution: I had to change the locale in the control Panel to Israel(Hebrew). Then it worked!
-
Also had to change from UTF-8 to Windows-1255.