[Solved] Menu & Window Caption - special chars aren't displaying correctly
-
I've tried, and this is result:
!http://i55.tinypic.com/2lx83s.png(http://i55.tinypic.com/2lx83s.png)!
-
[quote author="Peppy" date="1304530509"]I've tried, and this is result:[/quote]
You must actually change the encoding of your file. If you use Qt Creator go to the project pane, then to editor settings and change the default encoding to UTF-8.
For all your files that you have already: open them in Creator, go to menu Edit / Select Encoding... choose UTF-8 and click "save with encoding". This transforms all of your files to UTF-8 encoding.
If you know how to handle the tool, you can use something like recode too, of course. Just make sure Creator reloads the files, if they're open. Otherwise it overwrites the converted files. Better close all files before you do the conversion, quit Creator and open it afterwards.
-
Yes, but in every file, I work with this strings! :D...
But what makes me sad is that, I make new project, I'll set up encoding (through settings) and it's another problem - also writes some strange captions. So the problem still going on...
I have been set up editors settings. I have been saving all files. I have been programming this files. And also it makes strange captions...I don't understand, maybe I am just so stupid, maybe it's my karma, or my Shauma, but it drives me mad...
-
You can set the default encoding in the preferences. It works like a charm. No troubles over here. I never had any problems.
But please keep in mind that changing the encoding afterwards can be error prone. You must make sure that all tools you use catch up the new settings, including external editors!
-
Sorry, I cannot help further. It works for me and many others. We do not have a crystal ball here, so we cannot see what are your settings are, whether the files are really saved with UTF-8, and if you did add the encoding stuff in the .pro and main method mentioned earlier....
-
And now? Do you expect us from this cool addition to help you any further? Some code, preferable a small, complete, compilable example in a ZIP, would get you out of that corner....
EDIT
Your encodings are still messed up.Please zip up the sources (and only the sources, please. no intermediary files like .o or moc_xxx and no executable).
And post a screenshot of your settings panes (preferences / text editor / behavior) and the project settings (projects / editor settings)
-
You must add the UTF-8 configs to your .pro and main method, as explained in "this comment":http://developer.qt.nokia.com/forums/viewreply/33472/
These steps are always required, when using UTF-8 encoded sources.
-
[quote author="Peppy" date="1304760679"]I am back: Another problem with encoding: Message Boxes...How to repair it?[/quote]
You want to read: http://www.catb.org/~esr/faqs/smart-questions.html