Reputation: 69
I want to write in arabic on a primefaces tab.I use primefaces 1.1.
<p:tab title="الهوية" >
but it is displayed on the browser as tiles. Any solution plz.
Upvotes: 1
Views: 940
Reputation: 1108642
but it is displayed on the browser as tiles
In other words, the font as used by the browser does not support those characters. The encoding is all fine, you would otherwise have seen Mojibake instead, something like as اÙÙÙÙØ©
or even question marks as in ??????
.
You need to change the default font used by your website to another one which has the best support for those characters in all client side platforms. For example, Arial or just Sans-Serif. You can do this in your default CSS stylesheet.
body {
font-family: Arial, Sans-Serif;
}
Upvotes: 1
Reputation: 37051
try adding the following to your page
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
Upvotes: 1