Character encoding problem Using Java 1.4.2 and Mysql 5.0
- From: "Dhananjay" <dhananjaykjha@xxxxxxxxx>
- Date: 6 May 2006 01:27:16 -0700
Hi All,
I am facing a problem for Character encoding that just made me crazy.
Our user's copies text from different sites and pasting it .
I m using jboss 3.2.3 and embedded tomcat 4.1.29 and MySql 5.0 as
backend.
I have used a filter that set character encoding like this
request.setCharacterEncoding("Cp1252");
and our jsp contains the tag :
<%@ page contentType="text/html; charset=windows-1252"
language="java"%>
<%@ page pageEncoding="windows-1252"%>
I am using jboss manage connection and mysql-ds.xml setting for mysql
is as follows:
jdbc:mysql://10.1.1.48:3306/mydb?useUnicode
=true&characterEncoding=cp1252&characterSetResults=cp1252
If debug the application just before insertion every thing is fine but
if iretrieve the content its weired and produce ? for some characters
like
"left angled double quote", "right angled double quote" etc..
Thanks in advance..
Regards
Dhananjay
.
- Prev by Date: Re: Oracle sql function SPLIT?
- Next by Date: Re: Oracle sql function SPLIT?
- Previous by thread: loadDataFromFile() method not working
- Next by thread: Re: Cloudscape - usage of?
- Index(es):
Relevant Pages
|
|