25 Nov 2008
by wktd
edit
xn--6by35j.com
Combobox and UTF-8
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 !!
var k=s.split(";");
var r="";
for(var x=0;x
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