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
10002
May 24, 2005 01:59PM
4459
May 25, 2005 11:31AM
Re: How to Insert Chinese into Mysql database with ASP
4286
May 25, 2005 11:33AM
3110
May 25, 2005 11:36AM
3019
September 19, 2005 02:13PM
5595
September 21, 2005 03:05AM
4437
September 22, 2005 07:58AM
2997
September 28, 2005 03:34PM
2903
September 28, 2005 03:42PM
6342
September 29, 2005 08:42PM
2956
November 24, 2005 08:36AM
2904
December 01, 2005 06:35AM
2830
October 13, 2006 09:50AM
2941
January 26, 2006 01:34AM
4156
January 26, 2006 01:50AM
5239
February 23, 2006 08:22AM
5642
June 14, 2006 01:05PM
3042
August 09, 2006 07:27AM
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.