3
我有一个问题,我的边栏,当我设置与阿拉伯文字输出的样子,并不能正确渲染GWT阿拉伯语渲染
LIElement item1=new SideBarItem().addSideBarItem("fa fa-fw fa-dashboard","العملاء","index.html");//here is the problem
sideBar.appendChild(item1);
sideBar.appendChild(new SideBarItem().addSideBarItem("fa fa-fw fa-bar-chart-o","Charts","charts.html"));
sideBar.appendChild(new SideBarItem().addSideBarItem("fa fa-fw fa-table","Tables","Tables.html"));
本项文本的功能是我使用
public LIElement addSideBarItem(String icon, String text,String target){
anc.setInnerHTML("<i class=\"" + icon + "\"></i> " + text);
anc.setTarget(target);
return sideBarListItem;
}
所以如何设置的元件或部件如阿拉伯字符串 例如的setTitle(“عربي”)的内部文本;
的格式** **所有文件以UTF-8编码? –
是的,我的project.gwt.xml和我的html页面都编码为UTF-8 –
谢谢托马斯唯一没有编码为UTF-8的东西是项目的eclipse资源 –