Default character set in database
Posted by: pawel jankowski
Date: July 11, 2007 01:53AM

Hello!

I have a problem with inserting polish chars into database.
Software is written in c# .net 2005 and I use MySql.Data.dll ver. 5.1.2.2
MySQL version is 5.0.33

When default character set in database is set on 'latin1' all polish chars are replaced by '?' after insert.
Everything went good when default character set is 'utf8'!

BUT!!!

Before insert any record into table, I setup a three variables:
"SET character_set_client = " + sClientCharset;
"SET character_set_results = cp1250;"
"SET character_set_connection = " + sConnCharset;

sClinet.. and sConn... are readed ealier database variables

I wrote small test program in PHP and everything works fine.

Whats wrong??? Plisss help

Best regards

Options: ReplyQuote


Subject
Views
Written By
Posted
Default character set in database
4522
July 11, 2007 01:53AM


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.