Hybrid View
-
21 Dec 2010 3:28 AM #1
Using Special characters
Using Special characters
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('ë,ä,á,ç,à');
-
21 Dec 2010 4:13 AM #2
you probably have to use HTML entities instead
-
21 Dec 2010 4:23 AM #3
you mean things like : 'Ã'for 'Ã'.
Does anyone know why sencha has a problem with special characters?
-
21 Dec 2010 11:03 AM #4
Have you saved your file with utf8?
-
22 Dec 2010 4:18 AM #5
What do you mean with 'saved your file with utf8'?
-
23 Dec 2010 5:41 AM #6
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 helpsSencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
23 Dec 2010 5:50 AM #7
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).
-
23 Dec 2010 5:55 AM #8
You are welcome
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
6 Dec 2012 1:25 AM #9
Special characters in Placeholder fields
Special characters in Placeholder fields
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.
Similar Threads
-
Combo and special characters
By ceriums in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 18 Jan 2010, 1:41 PM -
remoteSort with special characters
By ryan0902 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 29 Sep 2009, 7:46 AM -
Handling JSON with special characters
By D-L in forum Ext 2.x: Help & DiscussionReplies: 9Last Post: 6 Jan 2009, 5:37 PM -
special characters in grid?
By xmrcivicboix in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 29 Mar 2007, 6:44 AM


Reply With Quote