欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php pdo oracle中文亂碼的快速解決方法

 更新時間:2016年05月16日 15:22:44   投稿:jingxian  
下面小編就為大家?guī)硪黄猵hp pdo oracle中文亂碼的快速解決方法。小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考,一起跟隨小編過來看看吧

在/etc/profile.d/簡歷oracle.sh

內(nèi)容如下在NLS_LANG設(shè)置編碼

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 pdo oracle中文亂碼的快速解決方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論