Example analysis of solutions to php pdo oracle Chinese garbled characters

墨辰丷
Release: 2023-03-29 13:36:02
Original
1789 people have browsed it

This article mainly introduces the example analysis of the solution to php pdo oracle Chinese garbled characters. Interested friends can refer to it. I hope it will be helpful to everyone.

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

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

to the header and then restart php

Summary: The above is the entire content of this article, I hope it will be helpful to everyone's learning.

Related recommendations:

PHP introductory tutorial: Detailed explanation of basic object-oriented concepts with examples

PHP implements multi-image upload and single-image upload functions

phpClasses and methods that implement names sorted by first letter

The above is the detailed content of Example analysis of solutions to php pdo oracle Chinese garbled characters. For more information, please follow other related articles on the PHP Chinese website!

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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!