我正在使用 CodeIgniter
构建我的查询,我正在导入的字段之一类似于:
textØ=125mm
插入/更新总是成功的,但它在表中显示为:
text??=125mm
我该如何解决这个问题?
最佳答案
检查你的 database.php
配置文件并确保它的值:
$db['development']['char_set'] = 'utf8';
$db['development']['dbcollat'] = 'utf8_general_ci';
关于php - MySQL 表中的特殊字符无法正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12052529/