[Solved] Menu & Window Caption - special chars aren't displaying correctly
-
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....
-
But now, t gives much more stranger strings...much more different from this first problem...
Input: ľščťžýáíéäúňô
Output: ľšÄťžýáÃéäúÅôWhat???
-
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.
-
Really? Okay... I'll add it.
-
Yes, it works...great - problems are solved...
-
I am back: Another problem with encoding: Message Boxes...How to repair it?
-
That was a question like: my computer crashes, what went wrong.
be more precise
give us code, exact locations etc. -
[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
-
Okay: this is code:
"http://pastebin.com":http://pastebin.com/45LnaGCMAnd it write something like at the beginning of this topic (some special chars are not displayed correctly)...
Maybe Qt uses WIN32API function MessageBoxA(A as Ansi)(...); which should be deprecated, but it uses Ansi variant of MessageBox (my opinion)... -
Yes, I've solved the problem and this is solution:
Do not work with output before set up the codecs (as it was shown before)...Thank you guys, I think everything is solved...so let's mark as solved...
-
[quote author="Peppy" date="1304765139"]Thank you guys, I think everything is solved...so let's mark as solved...[/quote]
You can do this yourself:
Go to the very first post of this thread, click the edit link just below your avatar on the right and prepend "[Solved]" to the topic -
Your code have successfully worked in my computer(Windows 7 & Qt 4.7.2)...