PHP PDO quick fix for Oracle Chinese garbled,
Resume oracle.sh in/etc/profile.d/
The contents are as follows in Nls_lang setup encoding
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
Then modify the/ETC/INIT.D/PHP-FPM
Increase in head
. /etc/profile.d/oracle.sh. /etc/init.d/functions. /etc/profile.d/oracle.sh# Check that networking are 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}
Then restart PHP to
The above this PHP PDO Oracle Chinese garbled Fast solution is small to share all the content of everyone, I hope to give you a reference, but also hope that we have a lot of support to help guests home.
http://www.bkjia.com/PHPjc/1127881.html www.bkjia.com true http://www.bkjia.com/PHPjc/1127881.html techarticle PHP PDO ORACLE Chinese garbled fast solution, in/etc/profile.d/resume oracle.sh content as follows in Nls_lang set encoding ORACLE_HOME=/USR/LIB/ORACLE/12.1/ Client64c_include_path=/us ...