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.

Non-ASCII characters displaying in Qt Quick

From 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 07:39.
65 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.

×