I'm loading texts from a json-file and special characters are not shown properly in all texts of my application. It took a while until I found out that they're shown correct in text fields with bold formatting. But it seems to be impossible to show the special characters in normal formatted text fields. I've tried all different encodings and the json-file is saved as utf-8 - but no chance!
For example the sharp S, if I do: Ext.getCmp('myText').setHtml(Ext.String.htmlDecode('ß')); it only works with bold texts (or if I trace it to the console)! And as my json-file is utf-8 I don't even have to de-/encode any special characters in order to show up correctly in bold texts, this works as expected, but not if the text is formatted normal!
How can I make a normal text showing special characters coming from a json-file!? I can't believe that this is such a problem but I also don't understand why it makes a difference whether the texts are bold or not.
Any help is extremely appreciated, thanks in advance!
special characters are only shown correct in bold texts
Aucun commentaire:
Enregistrer un commentaire