File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arabic charachter problem

 
hani Ibrahim
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
i want to show arabic letters from message_ar.properties
in servlet:
request.setCharacterEncoding("UTF-8");
Locale locale = new Locale("ar", "JO");
//testbundle. : is the package name
ResourceBundle bundleMSG = ResourceBundle.getBundle("message_ar",locale);
String Hi = bundleMSG.getString("Hi");
System.out.println("Hi="+Hi);
request.setAttribute("Hi",Hi);
in jsp:
<%@page pageEncoding="UTF-8"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome</title>
<html:base/>
<body>
HI ${requestScope.Hi};

</body>
-----------------------
it shows to me like this:
�����;
---------------------
how can i make it show actuall arabic letters.
Please help with details.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the font you're using to view the page have Arabic characters?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic