Re: utf8 character show as ???
Posted by: Renich Bon Ciric
Date: May 10, 2005 10:19AM

You know, I have the same problem

Im I have set variables in "my.cnf" and it looks like this

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.socket
default-chararcter-set=utf8
default-collation=utf8_general_ci

...

If I check the variables via the prompt, even when set like this, i get the client, connection and results variables set to "latin1". If I check my tables with foreign characters you get blank spaces intead of ?.

If you set this variable sin the mysql prompt, they do change (already tried setting them in the my.cnf and nothing).

You can do it like this:

mysql> SET character_set_client = utf8
-> SET character_set_connection = utf8
-> SET character_set_results = utf8;

If you do this, you will be able to see results with the foreign character BUT at least I am unable to GET the results.

Another strange fact

If I use phpmyadmin, even if I don't set this variables to utf8, it appears to be utf8 in the charsets section (obviously, if you try the SHOW VARIABLES in the mysql prompt you WON'T get this same result) and that is strange.

This has been happening recently (when I reinstalled the same version, 4.1.11, of mysql to Fedora Core 3) and I have been unable to do something.

I have already set the default charset of apache2 and php5 to utf8 and have the same problem in windows and linux.

Don't know what else to try...

Options: ReplyQuote


Subject
Views
Written By
Posted
9191
February 13, 2005 10:00PM
6303
February 14, 2005 09:19PM
4455
March 03, 2005 06:58PM
3922
December 30, 2005 01:39AM
3585
February 28, 2006 03:41AM
2932
May 20, 2005 04:56PM
2955
May 09, 2005 03:17PM
Re: utf8 character show as ???
3092
May 10, 2005 10:19AM
3654
May 25, 2005 07:50AM
2657
June 10, 2005 11:17AM
3843
June 22, 2005 04:48PM
2635
June 28, 2005 01:48AM
2533
July 06, 2005 02:02AM
2721
December 15, 2005 05:13AM
2765
July 11, 2005 05:21PM
2501
July 11, 2005 05:55PM
2629
July 11, 2005 07:50PM
2506
October 31, 2005 12:22AM
2618
November 03, 2005 05:12AM
2255
July 27, 2005 02:56PM
2222
December 08, 2005 03:14AM
2702
April 05, 2006 10:09AM
2760
April 07, 2006 03:47PM


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.