网页交付表单存放到数据库时,范式中文都转成了?

WBOY
Release: 2016-06-13 12:59:23
Original
749 people have browsed it

网页提交表单存放到数据库时,范式中文都转成了???
我使用yii建了一个网站,但是我这个网站上提交的中文,保存到数据库里中文都会变成???
------解决方案--------------------
编码问题。。把页面跟你的数据库编码统一。。
插入数据前有     mysql_query("set names '你的数据库编码'"); 这句没?

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