GWT arabic rendering

107 views Asked by At

I have a problem with my sidebar items when I set the item text with arabic text the output looks like ������� and not rendered properly

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"));

this is the function I use

public LIElement addSideBarItem(String icon, String text,String target){
    anc.setInnerHTML("<i class=\"" + icon + "\"></i> " + text);

    anc.setTarget(target);
    return sideBarListItem;
}

so how to set the inner text of an element or widget as Arabic String for example setTitle("عربي");

1

There are 1 answers

0
Mohamed Zaki On

I had to change the format in which eclipse saves it's source files this link helped me GWT: Character encoding umlauts