encoding problem

From: Date: Sat, 27 Dec 2003 14:03:49 +0000
Subject: encoding problem
Groups: php.general 
Request: Send a blank email to php-general+get-173369@lists.php.net to get a copy of this message
Hi. I have made a script in php that calls a java program. This java program will make a connection to a PostgreSQL db and do some operations. That java program works just fine if I run it on a console, but when it is php to runing it, it gives some errors related to the charset encoding. The error that apears in "error.log" of Apache is the following: Java.sql.SQLException: ERROR: Could not convert UTF-8 to ISO8859-1 I think that the problem is than Apache or PHP is runing the java program with UTF-8 encoding, while it should be running with iso8859-1. Does anyone knows how to solve this problem? Thanks. Pedro Salgueiro. __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

« previous php.general (#173369) next »