php pdo oracle Chinese garbled characters, _PHP tutorial

WBOY
Release: 2016-07-12 08:52:33
Original
826 people have browsed it

php pdo oracle Chinese garbled code,

in /etc/profile.d/resume oracle.sh

The content is as follows. Set the encoding in 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
Copy after login

Then modify /etc/init.d/php-fpm

Add

to the head
. /etc/profile.d/oracle.<span>sh<br /></span>
Copy after login

. /etc/init.d/functions
. /etc/profile.d/oracle.sh

Copy after login
Copy after login
Copy after login
Copy after login

# Check that networking is up.
. /etc/sysconfig/network

Copy after login
Copy after login
Copy after login
Copy after login

# Additional environment file
if [ -f /etc/sysconfig/php-fpm ]; then
. /etc/sysconfig/php-fpm
fi

Copy after login
Copy after login
Copy after login
Copy after login

if [ "$NETWORKING" = "no" ]
then
exit 0
fi

Copy after login
Copy after login
Copy after login
Copy after login

RETVAL=0
prog="php-fpm"
pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}
lockfile=${LOCKFILE-/ var/lock/subsys/php-fpm}

<span> </span>
Copy after login

Then restart php

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1126521.htmlTechArticlephp pdo oracle Chinese garbled code, the content in /etc/profile.d/resume oracle.sh is as follows and set the encoding in NLS_LANG 1 ORACLE_HOME=/usr/lib/oracle/ 12.1/client64 2 C_INCLUDE_PATH=/usr/include/ora...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template