Home > Backend Development > PHP Tutorial > Quick solution to Chinese garbled characters in php pdo oracle, _PHP tutorial

Quick solution to Chinese garbled characters in php pdo oracle, _PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-12 08:52:03
Original
1103 people have browsed it

Quick solution to Chinese garbled characters in php pdo oracle,

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

The content is as follows. Set the encoding in NLS_LANG

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
Copy after login

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

Add

to the head
. /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}
Copy after login

Then restart php

The above quick solution to php pdo oracle Chinese garbled code is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support Bangkejia.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1127881.htmlTechArticleA quick solution to php pdo oracle Chinese garbled characters, the content in /etc/profile.d/resume oracle.sh is as follows Set encoding ORACLE_HOME=/usr/lib/oracle/12.1/client64C_INCLUDE_PATH=/us...
in NLS_LANG
Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template