MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Charset problem

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ODBC Dotnet
Author Message
Timo Kunze



Joined: 08 Aug 2007
Posts: 1

PostPosted: Mon Apr 02, 2007 7:52 pm    Post subject: Charset problem Reply with quote

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};OPTIONS=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."

Archived from group: microsoft>public>dotnet>framework>odbcnet
Back to top
View user's profile Send private message
raylopez99



Joined: 08 Aug 2007
Posts: 13

PostPosted: Wed Apr 04, 2007 8:23 pm    Post subject: Re: Charset problem Reply with quote

On Apr 2, 6:52 am, Timo Kunze wrote:

>
> 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

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
problem in using a C# dll in VC++ 6.0 Hi All I wish to use a C# dll in my VC++ 6.0 based application. Cud u help me plz. Thanks & Regards Puneet *** Sent via Developersdex ***

Problem with DTS I am trying to execute a DTS package inside a windows service. The DTS is copying some data from an ODBC datasource to SQL Server. I think is a security problem, but when the windows service runs it does not trigger any error. The DTS deletes a table and

asp problem hi, i have a problem while running the asp script. The error is as follows. Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x800A0046) Driver Manager] Driver's failed Can u plzz tell me what to do? Very urgent!!

ODBC Problem Hi, I'm getting this error message on a windows 2003 VM ware box. ERROR [HY000] DirectConnect driver] Unable to load communication module. NetLib Driver has not been correctly installed. Overview. I developed this ASP.Net application on

Queries problem Hi I have two queries as sql strings. How can I take the results of two queries and use them in a third sql query? Thanks Regards
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ODBC Dotnet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group