You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "M. Amin" <am...@imkenberg.net> on 2001/04/23 18:28:30 UTC

How can i display arabic letters ?

Dear all,
 i'm using cocoon+tomcat, i followed the discussion regarding multiligual
support in cocoon and i configured cocoon.properties as specified for the xsp
engine and html formatter as follows :

processor.xsp.encoding = UTF-8
formatter.text/html.encoding = UTF-8
and in each xml file i set the encoding attribute to "UTF-8".

and the result is that, all the previous settings has no effect on the encoding
within xsp page. So, i forced the response encoding type for each xml file to
UTF-8, in which case the encoding is changed to UTF-8 but my arabic letters
appears as "???????". Finally, i tried to create a String object using the
unicode characters as follows : 

String arabic = new String("\u01B9"+"\u06B6"+"\u06BE");

but this arabic letters appears as "small squares" .

Sure, there's some thing missed, i hope i can find a help from others solved
this problem.

Regards,
 M. Amin

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: How can i display arabic letters ?

Posted by Berin Loritsch <bl...@apache.org>.
"M. Amin" wrote:
> 
> Dear all,
>  i'm using cocoon+tomcat, i followed the discussion regarding multiligual
> support in cocoon and i configured cocoon.properties as specified for the xsp
> engine and html formatter as follows :
> 
> processor.xsp.encoding = UTF-8
> formatter.text/html.encoding = UTF-8
> and in each xml file i set the encoding attribute to "UTF-8".
> 
> and the result is that, all the previous settings has no effect on the encoding
> within xsp page. So, i forced the response encoding type for each xml file to
> UTF-8, in which case the encoding is changed to UTF-8 but my arabic letters
> appears as "???????". Finally, i tried to create a String object using the
> unicode characters as follows :
> 
> String arabic = new String("\u01B9"+"\u06B6"+"\u06BE");
> 
> but this arabic letters appears as "small squares" .
> 
> Sure, there's some thing missed, i hope i can find a help from others solved
> this problem.

The small squares issue seems like the font couldn't handle the unicode characters
sent to it.  Make sure your browser's font can render arabic characters.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>