Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
27e77b7ceeeffe9227b5b96fdd63e3433e0eb63e
Description
Using unicode characters such as Unicode Character 'SUBSCRIPT TWO' (U+2082) works in QML, but wrapping the string in qsTr() breaks the display of the text.
Example :
text: "H\u2082O" //works
text: qsTr("H\u2082O") //does not work
As a workaround it is possible to set the textFormat to be rich text, and then specify the character in HTML encoding :
textFormat: Text.RichText
text: qsTr("H₂O") //works
Attachments
Issue Links
- replaces
-
QTBUG-18775 qsTr("") doest not work with UTF-8 characters not in ASCII range
- Closed
-
QTBUG-18582 qsTr("€3 suggested"); display "weird" character instead of '€'
- Closed