×
Namespaces

Variants
Actions

Non-ASCII characters displaying in Qt Quick

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: r60600 (25 Feb 2011)
Last edited: hamishwillee (24 Jul 2012)

Qt Quick provides Linguist to support internationalization, which is a problem displaying several type Non-ASCII characters base on mobile language setting in fact.If the application merely need one language support,it isn't necessary to use Qt Linguist.

The Qt Creator edit the .qml files with system encoding, which can't display the characters out of system language.So developers can modify .qml files encoding way to support more Non-ASCII characters.

Demostrates with the hello example of Qt SDK 1.1(\QtSDK\Examples\4.7\declarative\text\fonts\hello)

1.Open the project hello with Qt Creator;

2.Edit the file hello.qml with system editor(Such as notepad in windows) and save it as Unicode or UTF-8 encoding;

SystemEditor.JPG

3.Replace the text string in file with Non-ASCII characters

Helloqml.JPG

and run.

Simulator.JPG

These Non-ASCII characters displays correctly.

This page was last modified on 24 July 2012, at 10:39.
78 page views in the last 30 days.