Linux下php程序通过oci8和本地的oracle client远程查询服务器端的信息,通过程序返回的文字结果是问号。当使用sqlplus链接远程数据库,返回的文字信息正确。
系统环境 Linux Redhat, Oracle instant client 11g, PHP5.4 , apache2.
数据库链接代码 $conn = oci_connect('username', 'password', 'database');在sqlplus中,使用 select * from V$NLS_PARAMETERS Where PARAMETER='NLS_LANGUAGE'; 得到的结果是 KOREAN在/etc/init.d/httpd 文件中,已经加入了 export NLS_LANGUAGE=KOREAN,并且重新启动了apache,结果依然是问号。请问大家如何解决?