Link to home
Start Free TrialLog in
Avatar of mychel_normandeau
mychel_normandeauFlag for Canada

asked on

PHP echo() and accented characters

If I use the following code:
<?php
    echo('é<br>');
    echo('&eacute;<br>');
?>

I get a square on the first line but the second is OK (shows "é")? Why echo() don't shows accented characters correctly?
ASKER CERTIFIED SOLUTION
Avatar of TeRReF
TeRReF
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mychel_normandeau

ASKER

ohh ok, thanks I was using echo alone (for tests) I will 'wrap' it in an UTF-8 HTML block.
You're welcome :)