PDA

View Full Version : Combo and special characters



ceriums
9 Jul 2009, 6:48 PM
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.
http://www.brazilliante.com/1.jpg

And then...
http://www.brazilliante.com/2.jpg

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.

karieanis
9 Jul 2009, 8:35 PM
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.

ceriums
10 Jul 2009, 6:32 AM
It was i did first, and i got that.
http://www.brazilliante.com/3.jpg


http://www.brazilliante.com/4.jpg

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

j-joey
18 Jan 2010, 1:41 PM
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