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
9955
May 24, 2005 01:59PM
4446
May 25, 2005 11:31AM
Re: How to Insert Chinese into Mysql database with ASP
4273
May 25, 2005 11:33AM
3096
May 25, 2005 11:36AM
3011
September 19, 2005 02:13PM
5579
September 21, 2005 03:05AM
4426
September 22, 2005 07:58AM
2985
September 28, 2005 03:34PM
2892
September 28, 2005 03:42PM
6328
September 29, 2005 08:42PM
2946
November 24, 2005 08:36AM
2897
December 01, 2005 06:35AM
2816
October 13, 2006 09:50AM
2933
January 26, 2006 01:34AM
4142
January 26, 2006 01:50AM
5222
February 23, 2006 08:22AM
5631
June 14, 2006 01:05PM
3032
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.