File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java Internationalization Issue for Arabic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Internationalization Issue for Arabic" Watch "Java Internationalization Issue for Arabic" New topic
Author

Java Internationalization Issue for Arabic

Adnan Badar
Greenhorn

Joined: Sep 16, 2004
Posts: 8
Hi,
I am getting problems while displaying arabic data on browser. I am using java Internationalization API and using properties file. When I change browser encoding to UTF-8 arabic displays fine else I get:

���������� ��

* I tried to use in my jsp following:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

and also:
request.setCharacterEncoding("UTF8");

I tried combination of all but not working properly. If i fetch arabic data from Oracle database it displays fine using:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Please help me is there any issue while reading arabic data from properties file using java i18n solution.

Thanks in advance.


Regards <br />Muhammad Adnan Badar
Tyler Zetaf
Greenhorn

Joined: Mar 02, 2005
Posts: 1
You specified UTF8 as the character encoding in the call to setCharacterEncoding ("UTF8") should be "UTF-8".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Internationalization Issue for Arabic