Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

About Encoding of Qt Creator

From Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: r60600 (03 Mar 2011)
Last edited: hamishwillee (20 Jul 2012)

First,thank Brasser's help in comment of my article Non-ASCII characters displaying in Qt Quick .‎

Qt Creator provides functions to change file encoding,which let developers dispose non-ASCII characters conveniently.

The setting list

Tools->Options->Environment->Gerenal->User Interface->Default flie encoding,

ToolsOptions.JPG

Environment.JPG

with which developers only can set the encoding in openning file and can't affect saving.Developers had better set it as system encoding,or the text displays in disorder.

The encoding saving files decides non-ASCII characters displaying.If the file need to be saved as another encoding,there are 2 functions in creator.

1.Edit->Select Encoding->Text Encoding

SelectEncoding.JPG

TextEncoding.JPG

Developers must open a file before alter the Encoding whit it.

2.System editor(which is set in Tools->Options->Environment->Gerenal->System->External edtior)

Click the file with right mourse key,

SystemEditor.JPG

select system editor to open it and save as needed encodings.

This page was last modified on 20 July 2012, at 02:17.
107 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×