I recently wrote a webservice that runs as a Java application (probably not the best idea, but I'm more fluent in Java than in other languages like PHP or English :p). The Java application simply outputs the JSON data to System.out.
And then I wrote a tiny PHP script that uses the Java application.
Here is my PHP script :
ob_start('ob_gzhandler');
header("Content-Type: application/json; charset=UTF-8");
passthru("java -jar webservice.jar ");
The issue is that every special char (like "é") is output as "??"
Any idea of what I could try to fix that encoding issue ?
Thanks
EDIT : when I run java -jar webservice.jar in a shell, I have no encoding issue