HighTechTalks DotNet Forums  

Charset problem

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss Charset problem in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Timo Kunze
 
Posts: n/a

Default Charset problem - 04-02-2007 , 08:52 AM






Hi,

I'm using MySQL Connector/ODBC v5 to connect to a MySQL 4.1.22 server.
I'm using the following connection string:

DRIVER={{MySQL Connector/ODBC
v5}};SERVER={0};DATABASE={1};UID={2};PWD={3};OPTIO NS=3;CHARSET=utf8;

The tables are of type MyISAM, the collations are utf8_general_ci.
When inserting rows into a table, any special characters like German
umlauts are written correctly into the table (verified that with
phpMyAdmin). But when reading those rows, the special characters are broken.

If I execute "SET CHARACTER SET latin1" right after connection opening,
the special characters are okay, but I'd like to use UTF-8 only.

What am I doing wrong?

Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."

Reply With Quote
  #2  
Old   
raylopez99
 
Posts: n/a

Default Re: Charset problem - 04-04-2007 , 06:23 PM






On Apr 2, 6:52 am, Timo Kunze <TKunze71... (AT) gmx (DOT) de> wrote:

Quote:
If I execute "SET CHARACTER SET latin1" right after connection opening,
the special characters are okay, but I'd like to use UTF-8 only.

What am I doing wrong?

Timo
Beats me Timo. I'm still learning the language.

RL



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.