3
4

4 回答 4

2
于 2010-01-15T01:18:36.107 回答
1

Are you sure that phpMyAdmin is doing it right? ∞ Looks a lot like a UTF8 character stored in a latin-1 column.

What do you get when you do this select hex(column_name) from the_table?

  • If it's E2889E, then your connection is UTF8, your column may not be.

  • If it's C3AC, then your connection is latin-1 and your column is utf8.

  • If it's EC, then both your connection and column are latin-1

Here's a quick way to verify that the column's encoding is UTF8:

select 
    column_name, character_set_name, collation_name 
from 
    information_schema.columns
where
    table_name = '_your table_'
于 2010-01-15T01:34:07.317 回答
0

Are you setting SET NAMES utf8 before inserting the content into the database?

于 2010-01-15T01:05:38.690 回答
0

Don't forget the "query" SET CHARACTER SET utf8 at the beginning of your scripts.

于 2010-01-15T01:30:43.617 回答