Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Location
    Europa
    Posts
    216
    Vote Rating
    1
    kortovos is on a distinguished road

      0  

    Default 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('ë,ä,á,ç,à'); 

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    397
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Default


    you probably have to use HTML entities instead

  3. #3
    Sencha User
    Join Date
    Aug 2010
    Location
    Europa
    Posts
    216
    Vote Rating
    1
    kortovos is on a distinguished road

      0  

    Default


    you mean things like : 'Ã'for 'Ã'.

    Does anyone know why sencha has a problem with special characters?

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Location
    Norway
    Posts
    56
    Vote Rating
    1
    aCa is on a distinguished road

      0  

    Default


    Have you saved your file with utf8?

  5. #5
    Sencha User
    Join Date
    Aug 2010
    Location
    Europa
    Posts
    216
    Vote Rating
    1
    kortovos is on a distinguished road

      0  

    Default


    What do you mean with 'saved your file with utf8'?

  6. #6
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Quote Originally Posted by kortovos View Post
    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('ë,ä,á,ç,à'); 
    Try to use Unicode characters.
    Example:
    Intead of write

    PHP Code:
    alert('ëäáçà'); 
    try this one
    PHP Code:
    alert('\u00EB\u00E4\u00E1\u00E7\u00E0'); 
    This should solve your issue.
    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


  7. #7
    Sencha User
    Join Date
    Aug 2010
    Location
    Europa
    Posts
    216
    Vote Rating
    1
    kortovos is on a distinguished road

      0  

    Default


    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).

  8. #8
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    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


  9. #9
    Sencha User
    Join Date
    Dec 2012
    Posts
    1
    Vote Rating
    0
    mobimike is on a distinguished road

      0  

    Default 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&#243n". I tried replacing with UTF-8 codes but still not working. Any pointers are greatly appreciated.

Similar Threads

  1. Combo and special characters
    By ceriums in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jan 2010, 1:41 PM
  2. remoteSort with special characters
    By ryan0902 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Sep 2009, 7:46 AM
  3. Handling JSON with special characters
    By D-L in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 6 Jan 2009, 5:37 PM
  4. special characters in grid?
    By xmrcivicboix in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 29 Mar 2007, 6:44 AM

Thread Participants: 4