Re: How to Insert Chinese into Mysql database with ASP
hi Chetan,
There is 2 possibiliy that your chinese characters is converted to question mark.
1. the Table (and the column) 's charset may still latin1, and so your characters are converted to
question mark when server executing the INSERT.
Let's check it by using "DESC tablename" and what charaset is used for your table.
2. the connector you are using may insert the characters as latin1 when sending the
data to server (before server execute the INSERT)
if so, you can change this by using properties for conector so that the connector
can insert the character correctly.
the way for setting the connector depends on what connector you using.
But you can check if how your connector put the characters into server by checking
mysql general log like the following
---
2 Connect @localhost as anonymous on test
2 Query SET NAMES utf8
2 Query SET character_set_results = NULL
2 Query SHOW VARIABLES
2 Query SHOW COLLATION
2 Query SET autocommit=1
---
See the "SET NAMES XXX"
In this case (Connector/J), the connector put the data as utf8
Subject
Views
Written By
Posted
10458
May 24, 2005 01:59PM
4632
May 25, 2005 11:31AM
Re: How to Insert Chinese into Mysql database with ASP
4423
May 25, 2005 11:33AM
3245
May 25, 2005 11:36AM
3173
September 19, 2005 02:13PM
5734
September 21, 2005 03:05AM
4589
September 22, 2005 07:58AM
3150
September 28, 2005 03:34PM
3026
September 28, 2005 03:42PM
6575
September 29, 2005 08:42PM
3107
November 24, 2005 08:36AM
3064
December 01, 2005 06:35AM
2992
October 13, 2006 09:50AM
3065
January 26, 2006 01:34AM
4350
January 26, 2006 01:50AM
5393
February 23, 2006 08:22AM
5791
June 14, 2006 01:05PM
3159
August 09, 2006 07:27AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.