This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes arabic charachter problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "arabic charachter problem" Watch "arabic charachter problem" New topic
Author

arabic charachter problem

hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
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
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
Does the font you're using to view the page have Arabic characters?


Ping & DNS - my free Android networking tools app
 
 
subject: arabic charachter problem