Namespaces
Variants
Actions
Revision as of 05:17, 20 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

About Encoding of Qt Creator

Jump to: navigation, search
Article Metadata

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.

368 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved