Home > Backend Development > PHP Tutorial > ORACLE字符集编码有关问题

ORACLE字符集编码有关问题

WBOY
Release: 2016-06-13 10:35:21
Original
991 people have browsed it

ORACLE字符集编码问题
ORACLE里面编码为UTF-8,php页面编码为GBK 这样为什么没有乱码?而ORACLE为UTF-8,php为UTF-8反而取出的中文乱码,浏览器查看的时候用GBK取出的中文显示正常,而页面其他部分乱码!
这是为什么,本来还想统一编码的,这是什么问题?

------解决方案--------------------
存的数据就是gbk,mysql的client connection result server 都是utf8也是没有问题的,存啥取啥。

所以你从存就开始错,一直错到现在还认为自己存的是utf8。

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