[Qt-creator] Directory creation and chars
Matthias Ettrich
matthias.ettrich at nokia.com
Wed Nov 12 18:15:10 CET 2008
On Wednesday 12 November 2008 12:49:50 pm ext A B wrote:
[...]
>
> second: I changed the text on a button by inserting the code (with a
> perfect codecompletion) ui.pushButton->setText("tryck här");
>
> but the swedish letter ä was not saved in the source file.
> Is this Qt-creators fault or my linux operating systems fault or a
> miss in a configuration?
> I use version 0.9 build 320690.
Creator uses the system locale to decode and encode files. Modern Linux
systems tend to use UTF-8 reardless of the language, so it definitely should
have saved the 'ä' correctly. What does "locale" report?
Next creator version will allow to load/save files with different encodings,
and also to set a different encoding for a project. But again: if you create
and reload the file yourself, the encoding should have been "system" each
time, likely UTF-8, and it should just have worked.
Matthias
More information about the Qt-creator-old
mailing list