Hi all. Having more problems with utf-8 and Iñtërnâtiônàlizætiøn.
I'm running php (xampp) on Windows 7 (but it's also happening on my remote Linux site) and keep on getting nonsense with non-ASCII chars when they come from include files, e.g.
INCLUDE FILE: 'inc.php'
<?php
$simple = "Iñtërnâtiônàlizætiøn";
?>
MAIN FILE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="cy-GB" xml:lang="cy-GB">
<head>
<meta name="language" content="Welsh" />
<meta http-equiv="Content-Language" content="cy-GB" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
include_once("inc.php");
echo $simple . "";
echo "Straight: Iñtërnâtiônàlizætiøn";
?>
</body>
</html>
</body>
</html>
I get this:
I've tried putting the utf-8 header in various placed to no avail.
Has anybody seen this before or got an idea? I've been searching for days now. I think I'm going bonkers.
//EDIT - all pages are save as UTF-8 without BOM.