Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Daisy Brown   on Jan 18 In Java Category.

  
Question Answered By: Steve Boyd   on Jan 18

I assume that you are sure that cp1256 is capable of displaying all
needed characters.
Then I would suggest to check the following:
FARSI-CP1256 COMPATIBILITY:
Depends on what version of Windows you are on. Farsi is not officially
supported in all code points for cp1256 ;( (check UNICODE website as
well as some websites specialized on Farsi)

CONTENT TYPE SETTINGS:
Make sure you have all this three lines in your JSP page (in the same
order, where the META tag has to be within the HTML <HEAD> section):
<% response.setContentType("text/html; charset=cp1256"); %>
<%@ page content="text/html;charset=cp1256"%>
<meta http-equiv="Content-Type" content="text/html; charset=cp1256">

DB CODE PAGE SETTING:
What is the content page setting of your DB? CP1256?? UTF8? Win1256?
I would assume that the problem  is how MSAccess handles Farsi.

Share: