URL special character question

Some php script of mine generates a output that gets read as text using the URL class.

If I just execute the script in the browser via myScript.php, the Browser will show the text “gagné” on screen. But if I read out the stream as String using the URL class, the “é” will not be present. Is this a bug, or do I have to maybe change the php code?

The fact that it’s a URL doesn’t matter, but you’d need to use the same encoding at both ends. If you’re using InputStream::readEntireStreamAsString then it’ll expect UTF8.

Ok, thanks. Used PHP’s utf8_encode() and it works now.