Reputation: 4623
I have developed a small view that contains special char like 'é' and when I go to the browser I find that these special char have been replaced by question mark, I have added the meta tag with charset="utf-8"
to my index to resolve the problem but no changes, this is the first time I encounter such a problem, because I have already developed other views with special char (for an other ExtJs project) without any problem. any idea about this ?
Ext.define('ALM.MyView', {
extend : 'Ext.container.Viewport',
initComponent : function() {
var me = this;
Ext.applyIf(me, {
items : [{
xtype : 'toolbar',
//padding: '10px 10px 10px 10px',
//height: 28,
//width: 714,
items : [
{
xtype : 'button',
text : 'tout',
iconCls : 'all-icon'
}, {
xtype : 'button',
text : 'éffacer',
iconCls : 'clear-icon'
}, {
xtype : 'tbseparator'
}, {
xtype : 'button',
text : 'ajouter',
iconCls : 'add-icon'
}, {
xtype : 'button',
text : 'supprimer',
iconCls : 'delete-icon'
}, {
xtype : 'button',
text : 'modifier',
iconCls : 'modify-icon'
}, {
xtype : 'button',
text : 'rechercher',
iconCls : 'find-icon'
}
]
}]
});
me.callParent(arguments);
}
});
UPDATE
This is what I get as HTML :
<span id="button-1006-btnInnerEl" class="x-btn-inner" style="">�����</span>
and for instance I get this in the view : (Toolbar)
Upvotes: 0
Views: 4806
Reputation: 4623
the solution that I have chosen is to use HTML special character code as it is discribed in the post given by @sha :stackoverflow.com/questions/... .
in the other hand I was looking for if Ext JS gives automatically the possibility of using spercial char.
Special thanks to @sha.
Upvotes: 1