I set up both PHP 5 and Apache to use UTF-8 encoding. I tried to show in my browser the result of this PHP code:
echo "Trying to visualize the letter ü"
and it shows me this result:
Trying to visualize the letter �
Why?
I set up both PHP 5 and Apache to use UTF-8 encoding. I tried to show in my browser the result of this PHP code:
echo "Trying to visualize the letter ü"
and it shows me this result:
Trying to visualize the letter �
Why?
Try this :
<?php
header('Content-Type: text/plain; charset=utf-8');
echo "Trying to visualize the letter ü";
If this doesn't work, than your file is in different encoding that utf-8.
Make sure you set your documents "Content-Type" http header, and set the charset to the encoding that you're using:
header("Content-Type: text/html; charset=utf-8");