xn--6by35j.com

25 Nov 2008

by wktd

edit

xn--6by35j.com

Combobox and UTF-8
  • Hi all,

    I have a question about the comboboxes.
    Is there a possibility to show the translated UTF-8 Values of the List of the Comboboxes also correctly in the field of the box after selection?

    my store:

    co_store = new Ext.data.SimpleStore({
    fields: ['nummer', 'wert'],
    data : [ ['1',"&'#12399;&'#12356;"],['0',"&'#12356;&'#12356;&'#12360;"] ]
    });


    (The ' between & and # I made, because this post should not translate the code. In my original Sourcecode the ' are inexistend)

    Values in Combolist:
    http://www.sg-pages.de/temp/1.jpg

    Value after selection:
    http://www.sg-pages.de/temp/2.jpg

    Many thanks !!


  • Any ideas? :s


  • function runicode(s){
    var k=s.split(";");
    var r="";
    for(var x=0;x var m=k[x].replace(/&#/,"");
    r += String.fromCharCode(m);
    }
    return r;
    };
    co_store = new Ext.data.SimpleStore({
    fields: ['nummer', 'wert'],
    data : [ ['1',runicode("&'#12399;&'#12356;")],['0',runicode("&'#12356;&'#12356;&'#12360;")] ]
    });

    btw, can you type the japanese word directly instead of using HTML-style decimal numeric character references ?


  • COMMENTS

    VoIP: Hype, Hustle, and Heavenly Help
    Netreon Hires VP of Marketing

    Copyright © xn--6by35j.com Inc. All rights reserved.

    Pages
    Archives
    • 2007-01
    • 2007-02
    • 2007-03
    • 2007-04
    • 2007-05
    • 2007-06
    • 2007-07
    • 2007-08
    • 2007-09
    • 2007-10
    • 2007-11
    • 2007-12
    • 2008-01
    • 2008-02
    • 2008-03
    • 2008-04
    • 2008-05
    • 2008-06
    • 2008-07
    • 2008-08
    • 2008-09
    • 2008-10
    • 2008-11
    Categories
    • Self Help
    • Resumes
    • Cruising
    • Numerology
    • Digital Photography
    • Cyber Law
    • RVs
    • Languages
    Blogroll
    Meta
    • HOME
    • Valid XHTML
    • XFN
    • WordPress