php encoding utf-8 displayed as ansi

650 views Asked by At

I know this is at age old question but here it goes again.

But i do have really strange issue.

php file containing this encodingtest.php

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php 
echo 'テキスト'
?>

prints out

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<title></title>
</head>
<body>
????
</body>
</html>

very very strange issue

even with php file containing with just this line

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

produces this

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<title></title>
</head>
<body>
</body>
</html>

I am lost on what to do. anyone can help point out what I need to do. Would really be helpful the output of phpinfo() is in this link http://pastebin.com/zgKaRHxa any help is really appreciated.. thanks in advance

EDIT: meta tag was not visible so used code function to make it visble

0

There are 0 answers