• Post Reply Bookmark Topic Watch Topic
  • New Topic

Arabic encoding problem

 
Kc Sreejith
Greenhorn
Posts: 10
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all
i am developing an Arabic application in jsp,but there occurs a problem when displaying the arabic text i got ???
i am using tomcat 5.5 as server
my jsp page is as follows

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
%>

<%@ page import="java.sql.*,java.util.*,java.io.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<%
if(request.getParameter("Save")!=null)
{ String paramEncoding = application.getInitParameter("PARAMETER_ENCODING");
if((request.getMethod().equals("POST")) && (request.getParameter("Save").equals("Save"))){
if(paramEncoding !=null)
{
request.setCharacterEncoding(paramEncoding);
CalendarKey.insertCalendarKey();
status=1;
response.sendRedirect("manageCalendarKey.jsp?status=1");
}
}

<td align="center">
<form method="post" name="CalendarKeyfrm" id="CalendarKeyfrm" onSubmit="return false">

<td align="left">مفاتيح التقويم<</td>
<td align="left">
<input name="calendarKeyName" type="text" maxlength="50" id="calendarKeyName" size="40" onKeyPress="grabFocus(event,this,'colorCode')">

<input name="butAction" type="button" id="butAction" value="Save" onClick="return saveValue(1)" >
<input type="reset" value="Reset" />
<input name="cancel" type="button" class="btn" id="cancel" Value="Cancel" "> </td>

</form>

 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use code tag to post code snippets.

you can edit your post by clicking on edit icon & add code tag.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!