duanjing1023 2016-03-21 20:45
浏览 167

UTF8数据库不存储西班牙语字符

I have a WordPress database where all tables are set to utf8_general_ci. Some of my script reads in a remote CSV file and stores content to the database. If there are any spanish characters it won't store anything, just null. I tried mb_convert_encoding($line[2],'UTF-8'); which now stores the data but converts the characters to question marks.

WordPress database settings in wp-config are:

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
    • ¥15 MCNP里如何定义多个源?
    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn
    • ¥20 idea运行测试代码报错问题
    • ¥15 网络监控:网络故障告警通知
    • ¥15 django项目运行报编码错误
    • ¥15 请问这个是什么意思?
    • ¥15 STM32驱动继电器
    • ¥15 Windows server update services