From: <php...@li...> - 2012-04-24 03:47:56
|
I use php-java-bridge-4.0.7 to invoke java function in php program at linux system. but the parameter of Chinese string in php program is changed in java function. The code is at the below. $myj = new Java("PdfConvertor"); $myj->generatePDFWithWatermark('/tmp/08.pdf','/tmp/a.pdf','中国通信标准化协会','center'); The 3th parameter of the function generatePDFWithWatermark is Chinese. But the java class runs normally in terminal. I set parameters about encode to GBK in the file /etc/profile and php.ini.But it doesn't work. what's my problem? |