I've a problem and if u please help me.
My system configuration is :
Windows 2000 Professional
Allaire Jrun 3
Sun JDK 1.3.1
Microsoft Access 2000
this is my code:
<%@page contentType="text/html; charset=Cp1256" language="java" import="java.sql.*"%>
<%
Driver driverUser = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection connConnection = DriverManager.getConnection("jdbc:odbc:MSAccessDB","","");
String stmSQL = "SELECT FirstName FROM Header";
PreparedStatement pstmStatementUser = connConnection.prepareStatement(stmSQL);
ResultSet rsResultSet = pstmStatementUser.executeQuery();
%>
<html>
<body>
<%
String varTestFarsi = new String(rsResultSet.getString("FirstName").getBytes(),"Cp1256");
%>
<table>
<tr>
<td><%= varTestFarsi %></td>
</tr>
</table>
</body>
</html>
When I run this page, I just see some Question Marks (?) insteas of the correct characters(the field filled with persian characters).I test this page with utf-8 and wimdows-1256 but nothing happens.
I change Sun JDK to IBM JDK and JRun to Tomcat 4, and test my page again, but still there are question marks.
The Default encoding of installed JVM is Cp1252, I change it to utf-8 and windows-1256, nothing happens....
I don't know what's my problem, please HELP...