How to manage french accents properly?
Hello,
my problem is as simple as 123: I want to display french text, ie containing accents. I have tried almost all combinations with QString::from and QString::to without any success. For instance what is wrong here?
Code:
printf("%s\n", title.toLocal8Bit().data());
Output:
Code:
Coordonnes Parallles
Re: How to manage french accents properly?
You have to make sure your compiler uses the same codec like you did for editing. After this you can use the correct QString::fromFoo() - function. This issue was also asked on qt-interst ml many times.
A better solution would be to write all in english and then load a translation file.
Re: How to manage french accents properly?
Quote:
Originally Posted by
ChristianEhrlicher
You have to make sure your compiler uses the same codec like you did for editing. After this you can use the correct QString::fromFoo() - function. This issue was also asked on qt-interst ml many times.
What is "qt-interest ml"? Could you please give me some pointer?
Quote:
Originally Posted by
ChristianEhrlicher
A better solution would be to write all in english and then load a translation file.
Yes I do know, a better solution for english speaking people would be everybody speak english and do no longer be annoying us with those bastard language issues ;)
Re: How to manage french accents properly?
Quote:
Originally Posted by
Caius Aérobus
What is "qt-interest ml"? Could you please give me some pointer?
Tried Google? :)
Quote:
Yes I do know, a better solution for english speaking people would be everybody speak english and do no longer be annoying us with those bastard language issues ;)
It's not about people but tools. Tools are not humans, they cannot always interpret the complex train of thought of human brains.
Re: How to manage french accents properly?
Quote:
Originally Posted by
Caius Aérobus
What is "qt-interest ml"? Could you please give me some pointer?
The Qt-interest Mailing List: http://lists.trolltech.com/qt-interest/
Re: How to manage french accents properly?
greetings trollers,
Another way to achieve correct multi-nation typing (including francias) would be to use QChar class + the corresponding uni-code in combination with QString, as following for Montréal, Québec:
cheers
firas