Jakub, Thanks for your reply. I found out that I can not use ALTER DATABASE `db_name` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci after I create the database. If I do not, then I can use utf-8 coding and it works well.However, I do not know why.:-( Regards, L.