character encoding problem

liunx

Guest
I am not sure whether this is truly a PHP5 problem, but I recently upgraded from 4 to 5 and then this problem appeared.

I retrieve from a mySQL database some strings, some of which have characters with umlauts. These characters appear as question marks:
Misha k?r-?n-ne (the original page can be found here: <!-- m --><a class="postlink" href="http://languagelink.let.uu.nl/floris/tablecreate/myrunquery.php">http://languagelink.let.uu.nl/floris/ta ... nquery.php</a><!-- m -->)
However, if I run the script from the command line, and then pipe the output to a HTML file (on UNIX: php myrunquery.php > myrunquery.html) , it does show the characters correctly:
Misha k榘
 
Back
Top