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()
 
Character encoding problem STILL

Character encoding problem STILL

2007-11-08       - By James Sherwood

 Back
Reply:     1     2  

Hey all,

So I decided to start fresh on a test machine just to see if I could get
french characters working.
These are my steps:

Freshly Installed Mysql 5.0.45
Configure the MySql Server now
Detailed Configuration
Developer Machine
Multifunctional Database
Online Transaction Processing
Enable TCP/IP Networking and Enable Strinct Mode
Best Support for Multilingualism
Install as Windows Service

Created a DB
CREATE DATABASE testdb
   CHARACTER SET 'utf8'
   COLLATE 'utf8_general_ci';

Created a table:
CREATE TABLE `testtable` (
`id` INTEGER(11) NOT NULL,
`textfield` mediumtext,
PRIMARY KEY (`id`))TYPE=InnoDB CHARACTER SET 'utf8' COLLATE
'utf8_general_ci';

SHOW VARIABLES LIKE 'char%' produced all utf8

Trying INSERT INTO `testtable` VALUES (1,'? ? ? ? ?'); produced incorrect
string value

DID: SET NAMES utf8; SET CHARACTER SET utf8;

Trying INSERT INTO `testtable` VALUES (1,'? ? ? ? ?'); produced incorrect
string value

Replaced:
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
with: sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" in the my.ini
file
restarted mysql

Tried INSERT INTO `testtable` VALUES (1,'? ? ? ? ?'); and was accepted

Select returned nothing in the textfield field

Tried SET NAMES utf8; SET CHARACTER SET utf8;
INSERT INTO `testtable` VALUES (1,'? ? ? ? ?');

again select returned nothing in the texfield field.

Can someone PLEASE explain as to what I am doing wrong and why I cannot get
french characters working in mysql 5??

Thanks
--James


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