Mystery charset-set problem - sometimes OK sometimes not
Posted by: Jirka
Date: August 21, 2005 01:03PM

MySQL 5.0.11beta
Windows XP SP2
locale CZECH (cp1250)

I have "include file" on each page where DB is accessed, its like this:
Set adoCon = Server.CreateObject("ADODB.Connection")
strCon = "driver={MySQL ODBC 3.51 Driver};server=localhost;uid=x;pwd=x;database=x"
adoCon.Open strCon
adoCon.execute("SET character_set_client=cp1250")
adoCon.execute("SET character_set_connection=cp1250")
adoCon.execute("SET character_set_results=cp1250")

When I recieve SQL result via SELECT, it is sometimes in correct charset,
but after refreshing the same page
it turns good characters
into wrong

when i keep refreshing the same page, it randomly show first or second case.

parametres in my.ini:


I am very unhappy about this, can somebody help?

Options: ReplyQuote

Written By
Mystery charset-set problem - sometimes OK sometimes not
August 21, 2005 01:03PM

Sorry, you can't reply to this topic. It has been closed.

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.