Re: utf8 character show as ???
Posted by: Shuichi Tamagawa
Date: May 20, 2005 08:38PM

> I am using MySQL ver 5.0.11 alpha on window
> platform. I need MySQL to store character as utf8
> encoding.
>
> I use syntax below to alter db, and the command
> run successfully
>
> ALTER database test
> DEFAULT CHARACTER SET utf8
>
> However, everytime when i open MySQL front, the
> default character set reset to default instead of
> utf8, and the data which i enter as utf8 encoding
> display as ???

What kind of client are you using?

Client terminal have to support ut8 encoding to display utf8 characters correctly,
and if you are using mysql client from MS-DOS prompt, I doubt it can display utf8 characters.

Try SELECT HEX(column_name) FROM table_name; statement.
You can see if there is data crruption or it's jutst a displaying problem.

By the way, ALTER database test DEFAULT CHARACTER SET utf8 statement does not change anything on the existing table. It only affects the default character set of tables created after that.

Options: ReplyQuote


Subject
Views
Written By
Posted
9146
February 13, 2005 10:00PM
6273
February 14, 2005 09:19PM
4430
March 03, 2005 06:58PM
3896
December 30, 2005 01:39AM
3549
February 28, 2006 03:41AM
2910
May 20, 2005 04:56PM
2921
May 09, 2005 03:17PM
3621
May 25, 2005 07:50AM
Re: utf8 character show as ???
2970
May 20, 2005 08:38PM
2632
June 10, 2005 11:17AM
3813
June 22, 2005 04:48PM
2610
June 28, 2005 01:48AM
2511
July 06, 2005 02:02AM
2691
December 15, 2005 05:13AM
2735
July 11, 2005 05:21PM
2482
July 11, 2005 05:55PM
2605
July 11, 2005 07:50PM
2486
October 31, 2005 12:22AM
2586
November 03, 2005 05:12AM
2231
July 27, 2005 02:56PM
2192
December 08, 2005 03:14AM
2678
April 05, 2006 10:09AM
2728
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.