problem with inserting chinese character into mysql 4.1
Hey all,
I got a problem with inserting chinese character from jsp into the mysql4.1 through the jdbc. i developed a j2ee application in local machine with mysql 5. it works fine because i set the character set default to utf8 when i create the mysql server instance.
because my web hosting provider can only support the mysql 4.1 and then the problem occurs... (chinese character confusion now).
through the phpadmin... i have almost tried everything and it does not work. using phpdamin.... i am able to insert chinese character into the mysql database and it displays correctly either through the phpadmin or website... but if i insert
chinese character through jdbc and it becomes confusion (they didnot disply quesiton mark "?" but some other marks such like ' ) .. ).
I noticed that i am using the older verion mysql driver starting with org.gj....somthing in my local machine and i am using latest driver (com.mysql.jdbc.Driver) provided by my web hosting company ...
i know there is possible that it is connection problem... then i put the "set names 'utf8'" before i excuting any insert command.... and it still does not work....
two problems:
1. because i am unable to modify the my.ini or my.cnf in my web hosting company mysql server and i try the command "show variables like 'char%'" before and after i successfuly set these variable to utf8 and utf_general_ci through the phpadmin, the phpadim.. shows each variable value as "BLOB something". apperantly nothing changes... does it mean the variable does not change
2. this is at moment what i am suspecting ... it is jdbc problem ..because i am able to insert chinese character through the phpadmin.... but unable to insert it through the jdbc driver..
Please help me ... my email number is (zhongyuanlu@gmail.com)
Zhong Yuan Lu
Subject
Views
Written By
Posted
9329
February 13, 2005 10:00PM
6360
February 14, 2005 09:19PM
4528
March 03, 2005 06:58PM
3982
December 30, 2005 01:39AM
3651
February 28, 2006 03:41AM
problem with inserting chinese character into mysql 4.1
7202
October 16, 2005 09:33PM
3236
October 16, 2005 10:25PM
3462
May 07, 2005 08:43AM
2987
May 20, 2005 04:56PM
3184
May 20, 2005 09:08PM
3014
May 09, 2005 03:17PM
3189
May 10, 2005 10:19AM
2879
May 20, 2005 09:01PM
3709
May 25, 2005 07:50AM
3090
May 20, 2005 08:38PM
2705
June 10, 2005 11:17AM
3908
June 22, 2005 04:48PM
2694
June 28, 2005 01:48AM
2596
July 06, 2005 02:02AM
2778
December 15, 2005 05:13AM
2827
July 11, 2005 05:21PM
2568
July 11, 2005 05:55PM
2690
July 11, 2005 07:50PM
2555
October 31, 2005 12:22AM
2676
November 03, 2005 05:12AM
2312
July 27, 2005 02:56PM
2663
August 04, 2005 08:57AM
2285
December 08, 2005 03:14AM
2762
April 05, 2006 10:09AM
2813
April 07, 2006 03:47PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.