Need help with charset
Hello, i have a problem with retriving resaults from mysql to php in the correct character set.
I'm using latin2 charset, i've added default-charset to mysql config, and with the command line i did this:
SET character_set_client = latin2;
SET character_set_results = latin1; // if i set here latin2, select gives resault with wrong characters
SET character_set_connection = latin2;
The 'status' command show in every row of (...) charset: latin2, but when i use this to test php:
$charset = mysqli_character_set_name( $my_connection );
printf( "Current charset is %s\n", $charset );
it shows 'latin1_swedish_ci'.
I have no idea what is going on and what can i do more to fix this.
I'm looking forward for some replies.
Thans, Thomas
Subject
Written By
Posted
Need help with charset
May 26, 2005 09:52AM
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.