Home  >  Q&A  >  body text

Mysql数据输出问题

mysql中的中文数据显示的时候是“?”,这是什么原因,需要 set names ...什么吗?
谢谢。

高洛峰高洛峰2742 days ago633

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 11:58:45

    Encoding issue.

    The encoding of the field setting must be consistent with the encoding when you write.

    reply
    0
  • 黄舟

    黄舟2017-04-17 11:58:45

    Encoding problem, it may be that the encoding displayed on the ssh command line is inconsistent with the database

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:58:45

    show create table table_name to see the character set

    reply
    0
  • Cancelreply