Hello Markus,
Quick fix 1: try WString(L"Frankfürt") (and make sure your compiler
speaks your .cpp file's locale)
Quick fix 2: try WString(tr("Frankfurt")) and put Frankfurt in a message bundle
The correct response involves locale of files and compilers, combined
with how the standard specifies it should be done. TreeViewDragDrop.C
is saved in UTF-8 (but the file doesn't start with the UTF-8 cookie),
which apparently causes the compiler to store the UTF-8 encoded string
in the const char * sequence.
Quick fix 2 will work for sure across all platforms and compilers.
Best regards,
Wim.
2010/2/18 Markus Quatember <[email protected]>:
> Dear Wt-Wizards!
>
> I have a small problem with 'umlauts' in Wt:
>
> If I use a WString, like WString::fromUTF8("Frankfürt") in the
> treeviewdragdrop-example,
> for a button-label, tooltip and so on I cannot use umlauts.
> I changed the WApplication::locale to "en.65001", "de.1252" but with no
> effects.
>
> So I searched for a difference between my application and the
> treeviewdragdrop-example.
> The difference is the encoding in which the files are saved:
> my-app: "de.1252"
> treeviewdragdrop: "en.65001"
>
> If I save the "TreeViewDragDrop.C"-file with "de.1252" I get the same problem.
>
> The "TreeViewDragDrop.C"-file is the only file in the examples with the
> encoding "en.65001".
>
> Any ideas beside changing the file-encoding and don't using umlauts? ;-)
>
> best regards!
> Max Quatember
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest