Re: utf8 character show as ???
Posted by: Sergey
Date: June 22, 2005 04:48PM

I had a similar problem with PHP - the characters were showing as ???
I was able to solve it by setting:

>1) default-chararcter-set=utf8 in my.ini file
>2) default-collation=utf8_general_ci my.ini file
>3) [mysqld] init_connect='SET NAMES utf8' my.ini file
>4) created the table with default charset as utf 8

(just as described above by Shachi Rai), and also the following statement in PHP, which I put right after mysql_connect and mysql_select_db:

mysql_query('SET NAMES utf8');

Options: ReplyQuote


Subject
Views
Written By
Posted
9243
February 13, 2005 10:00PM
6331
February 14, 2005 09:19PM
4492
March 03, 2005 06:58PM
3952
December 30, 2005 01:39AM
3613
February 28, 2006 03:41AM
2959
May 20, 2005 04:56PM
2982
May 09, 2005 03:17PM
3682
May 25, 2005 07:50AM
2681
June 10, 2005 11:17AM
Re: utf8 character show as ???
3872
June 22, 2005 04:48PM
2659
June 28, 2005 01:48AM
2562
July 06, 2005 02:02AM
2747
December 15, 2005 05:13AM
2792
July 11, 2005 05:21PM
2531
July 11, 2005 05:55PM
2655
July 11, 2005 07:50PM
2528
October 31, 2005 12:22AM
2643
November 03, 2005 05:12AM
2282
July 27, 2005 02:56PM
2251
December 08, 2005 03:14AM
2727
April 05, 2006 10:09AM
2789
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.