向Mysql数据库藏储json编码的中文会乱码是什么原因

WBOY
Release: 2016-06-13 12:37:50
Original
794 people have browsed it

向Mysql数据库存储json编码的中文会乱码是什么原因?
json编码后是这样:"\u6768\u6865\u6e56\u5927\u9053\u7a0b\u6768\u6e7e",
但Mysql存储后变成了:"u6768u6865u6e56u5927u9053u7a0bu6768u6e7e",
其中的"\"没了,这种情况是什么原因引起的,怎么解决,求大神解惑……

编码 乱码 mysql json
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template