>백엔드 개발 >PHP 튜토리얼 >php pdo oracle中文乱码,_PHP教程

php pdo oracle中文乱码,_PHP教程

WBOY
WBOY원래의
2016-07-12 08:52:33859검색

php pdo oracle中文乱码,

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

内容如下在NLS_LANG设置编码

 

<span>1</span> ORACLE_HOME=/usr/lib/oracle/<span>12.1</span>/<span>client64
</span><span>2</span> C_INCLUDE_PATH=/usr/include/oracle/<span>12.1</span>/<span>client64
</span><span>3</span> LD_LIBRARY_PATH=$ORACLE_HOME/<span>lib
</span><span>4</span> <span>#remember this is the client NLS_LANG not the server one
</span><span>5</span> NLS_LANG=<span>FRENCH_FRANCE.UTF8 
</span><span>6</span> export ORACLE_HOME LD_LIBRARY_PATH NLS_LANG

 

然后修改 /etc/init.d/php-fpm

在头部增加

. /etc/profile.d/oracle.<span>sh<br /></span>

. /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}

<span> </span>

然后重新启动php即可

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1126521.htmlTechArticlephp pdo oracle中文乱码, 在/etc/profile.d/简历oracle.sh 内容如下在NLS_LANG设置编码 1 ORACLE_HOME=/usr/lib/oracle/ 12.1 / client64 2 C_INCLUDE_PATH=/usr/include/ora...
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.