您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php pdo oracle中文乱码的解决方法实例分析

2025/10/19 4:38:42发布16次查看
本篇文章主要介绍php pdo oracle中文乱码的解决方法实例分析,感兴趣的朋友参考下,希望对大家有所帮助。
在/etc/profile.d/简历oracle.sh
内容如下在nls_lang设置编码
oracle_home=/usr/lib/oracle/12.1/client64 c_include_path=/usr/include/oracle/12.1/client64 ld_library_path=$oracle_home/lib #remember this is the client nls_lang not the server one nls_lang=french_france.utf8 export oracle_home ld_library_path nls_lang
然后修改 /etc/init.d/php-fpm
在头部增加
. /etc/profile.d/oracle.sh . /etc/init.d/functions . /etc/profile.d/oracle.sh # check that networking is up. . /etc/sysconfig/network # additional environment file if [ -f /etc/sysconfig/php-fpm ]; then . /etc/sysconfig/php-fpm fi if [ "$networking" = "no" ] then exit 0 fi retval=0 prog="php-fpm" pidfile=${pidfile-/var/run/php-fpm/php-fpm.pid} lockfile=${lockfile-/var/lock/subsys/php-fpm}
然后重新启动php即可
总结:以上就是本篇文的全部内容,希望能对大家的学习有所帮助。
相关推荐:
php入门教程之面向对象基本概念实例详解
php实现多图上传和单图上传功能
php实现姓名根据首字母排序的类与方法
以上就是php pdo oracle中文乱码的解决方法实例分析的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product