200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > mysql 查找 法语字母 如何在MySQL数据库表中插入法语字符?

mysql 查找 法语字母 如何在MySQL数据库表中插入法语字符?

时间:2024-05-03 23:18:06

相关推荐

mysql 查找 法语字母 如何在MySQL数据库表中插入法语字符?

I am having a major issue with inserting french characters in my mySQL DB. The french charaters doesn't display properly in the mysql table. For example "Éducation" is displayed as "Éducation". I have set the encoding to utf8_unicode_ci. I have also tried the function htmlentities($string ,ENT_QUOTES, "UTF-8").

Can someone help me with this?

解决方案

In the php:

header ('Content-type: text/html; charset=utf-8');

After connection:

mysql_set_charset("utf8");

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。