Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Classic ASP ODBC 3.51 UTF8 problem

Classic ASP ODBC 3.51 UTF8 problem

2007-07-26       - By Craig

 Back
Reply:     1     2     3     4  

Hi,

I have  been asked to convert an Australian web site to handle Chinese
characters.  It has a MySQL 5.0 database and has a front end written in
ASP.NET VB V1.1 and a CMS written in Classic ASP.  I seem to have been
successful in converting the database to UTF-8 (See http://UTF-8.ora-code.com) and the .NET application as
various extended characters can be input via forms and read back on the web
pages.

I should also say that all pages are XHTML.

My problem comes with the CMS, it neither reads back nor inputs correctly
any extended characters (?, ?, etc).  The pages are using the same database
tables as the .NET front end and have response.charset="utf-8 (See http://utf-8.ora-code.com)" in each of
them plus the content/type meta tag charset=UTF-8 (See http://UTF-8.ora-code.com) set ok.  It appears to me
that the ODBC connector isn't carrying the encoding correctly.

The .NET connection string: "Driver={MySQL ODBC 3.51 Driver};
Server=localhost; Port306; UID=theDB; PWD=xxxxxxxx; charset=utf8;
OPTION=3; Database?elive"

The Classic ASP connection string: "Driver={MySQL ODBC 3.51 Driver};
Server=localhost; Port306; UID=theDB; PWD= xxxxxxxx; character set=utf8;
OPTION=3; Database=config"

I've added the "charset=utf8" and "character set=utf8" from the results of a
lot of Googling so I'm not positive they are correct.

Could someone please advise as I'm VERY new to MySQL. I'm not even sure that
the non-.NET ODBC driver can handle utf-8 (See http://utf-8.ora-code.com) properly.

Best regards,

Craig Stevens
The Incredibly Useful Company Limited
craig@(protected)
Tel: +44 (0)1753 573510
Fax: +44 (0)870 130 3707
Skype: callto://craig1001



--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/myodbc?unsub=mysql@(protected)