I want to output the following line in PHP:
ä ö ü ß €
Therefore, I encoded it in utf8 manually:
ä ö ü ß  €
So my script:
<?php
header('content-type: text/html; charset=utf-8');
echo 'ä ö ü ß €';
?>
The first four characters are correct (ä ö ü ß), but unfortunately the “does not match” sign:
ä ö ü ß
Here you can see it.
Can you tell me what I did wrong? My editor (Notepad ++) has settings for encoding (Ansi / UTF-8) and Format (Windows / Unix). Should I change them?
I hope you help me. Thanks in advance!
source
share