Created
July 20, 2012 17:00
-
-
Save ginsterbusch/3151888 to your computer and use it in GitHub Desktop.
HTTP header charset test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Quick character set test | |
* Simply comment out the HTTP header you DO NOT want to use | |
*/ | |
header('Content-Type: text/html; charset=iso-8859-1'); // breaks the charset | |
header('Content-Type: text/html; charset=utf-8'); // correct charset | |
?> | |
<html> | |
<body> | |
<h1>Das scharfe "ß"</h1> | |
<p>Ümläute a la carté</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment