首页 > 语言 > PHP > 正文

php pdo oracle中文乱码的快速解决方法

2024-05-04 23:46:06
字体:
来源:转载
供稿:网友
下面小编就为大家带来一篇php pdo oracle中文乱码的快速解决方法。小编觉得挺不错的,现在分享给大家,也给大家做个参考,一起跟随小编过来看看吧
 

在/etc/profile.d/简历oracle.sh

内容如下在NLS_LANG设置编码

ORACLE_HOME=/usr/lib/oracle/12.1/client64C_INCLUDE_PATH=/usr/include/oracle/12.1/client64LD_LIBRARY_PATH=$ORACLE_HOME/lib#remember this is the client NLS_LANG not the server oneNLS_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 fileif [ -f /etc/sysconfig/php-fpm ]; then. /etc/sysconfig/php-fpmfiif [ "$NETWORKING" = "no" ]thenexit 0fiRETVAL=0prog="php-fpm"pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}lockfile=${LOCKFILE-/var/lock/subsys/php-fpm}

然后重新启动php即可

以上这篇php pdo oracle中文乱码的快速解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持VeVb武林网。



注:相关教程知识阅读请移步到PHP教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选