views:

181

answers:

2

Hey,

i'm having some troubles with UTF-8 encoding on a website. Calling my script using PHP5 all the umlauts (ä, ü, ö,...) look like this: ökflödsköl

Calling the script using PHP4 shows everything as expected...

both php.ini look the same an so my question would be:

is there an other file where i can change the output encoding?

Thanks

A: 

New Status: if i remove htmlentities() it all looks great...

Olivier Tille
+1  A: 

You need to tell htmlentities to use UTF-8

htmlentities($foo, null, 'UTF-8');

I hope that helps :)

Thomas Winsnes
yes, thanks that did help
Olivier Tille