The app I am making is multilangual. So when I tried the Spanish version today I got a surprise. Special characters like 'ë,é,à,...' are not displayed. Am I doing something wrong or is there a way around this?
PHP Code:
alert('ë,ä,á,ç,à');
The app I am making is multilangual. So when I tried the Spanish version today I got a surprise. Special characters like 'ë,é,à,...' are not displayed. Am I doing something wrong or is there a way around this?
PHP Code:
alert('ë,ä,á,ç,à');
you probably have to use HTML entities instead
you mean things like : 'Ã'for 'Ã'.
Does anyone know why sencha has a problem with special characters?
Have you saved your file with utf8?
What do you mean with 'saved your file with utf8'?
Try to use Unicode characters.
Example:
Intead of write
try this onePHP Code:
alert('ëäáçà');
This should solve your issue.PHP Code:
alert('\u00EB\u00E4\u00E1\u00E7\u00E0');
I suggest you to take a look at this link to know the corrisponding code of your characters:
http://0xcc.net/jsescape/
Write your text in the "Plain Text" textbox and take the result from "\uXXXX" textbox.
Hope this helps
Sencha Inc
Andrea Cammarata, Solutions Engineer
Owner at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
TUX components bundle for Sencha Touch 2.x.x
https://github.com/AndreaCammarata/TUX
Thanks andreacammarata, your solution is the only one that I have tried that works (I have tried to change default char sets, override char sets,... and nothing worked).
You are welcome![]()
Sencha Inc
Andrea Cammarata, Solutions Engineer
Owner at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
TUX components bundle for Sencha Touch 2.x.x
https://github.com/AndreaCammarata/TUX
Helo Friends,
I am facing problem with Spanish special characters in placeholder. The special characters are getting displayed correctly in labels and other places however in placeholder, the code is getting displayed. For example "Información" is getting displayed as "Información". I tried replacing with UTF-8 codes but still not working. Any pointers are greatly appreciated.