1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    6
    Vote Rating
    0
    ceriums is on a distinguished road

      0  

    Default Combo and special characters

    Combo and special characters


    Hello.
    I saw a few threads here with the same problem as mine but i didn't find the solution.
    A screenshot is better than an explanation.

    Here is the dropdown list. Everything is fine.


    And then...


    Here is my code:
    xtype: 'combo',
    mode: 'local',
    triggerAction: 'all',
    hiddenName: 'loginLanguage',
    forceSelection: 'true',
    readOnly: 'true',
    fieldLabel: _LANGUAGE,
    name: 'loginLanguage',
    anchor: '100%',
    store: new Ext.data.ArrayStore({
    fields: [
    'lang',
    'text'
    ],
    data: [['en', 'English'], ['fr', 'Français'], ['pt_BR', 'Portugues']]
    }),
    displayField: 'text',
    valueField: 'lang'
    Any idea?

    Thanks.

  2. #2
    Sencha User karieanis's Avatar
    Join Date
    Jun 2008
    Location
    Melbourne, Australia
    Posts
    110
    Vote Rating
    1
    karieanis is on a distinguished road

      0  

    Default


    I would think the obvious solution is to not have characters as HTML entities in your store. I cut and pasted your code into firebug, and changed the ç in the datastore to ç - it works fine.
    Jeremy Rayner
    Software Engineer

  3. #3
    Ext User
    Join Date
    Feb 2009
    Posts
    6
    Vote Rating
    0
    ceriums is on a distinguished road

      0  

    Default


    It was i did first, and i got that.





    And there is
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    in my header.
    Any idea?

  4. #4
    Sencha User j-joey's Avatar
    Join Date
    Apr 2008
    Location
    Mersin, Turkey
    Posts
    186
    Vote Rating
    0
    j-joey is on a distinguished road

      0  

    Default


    your solution is saving your source file as utf-8...

    well, i got the same problem, but in my project i cannot save as utf8, can anyone suggest any workarounds?

    while &le; ( ≤ - &# 8804; ) and &ge; ( ≥ - &# 8805; ) characters took 2bytes i cannot save them in an ascii file

Thread Participants: 2