Jump to content

php Language display problems


shadiadiph

Recommended Posts

mm i have been playing with this for hours now and figured out it is php related i have been trying to make a test page to display thai language as a php file it displays the thai as ??? but when i save it as an html document it works fine what do i need to add or change?

 

this test.html works

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="th" lang="th">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css; charset=utf-8" />
<title>โทร</title>
</head>
<body>
โทร
</body>
</html>

 

this test.php does not work

<?php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="th" lang="th">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css; charset=utf-8" />
<title>โทร</title>
</head>
<body>
โทร
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/191210-php-language-display-problems/
Share on other sites

i have been doing that for hours i tried using encoding tis-620

this clearly seems to be a php issue as it displays fine when the php is removed as displayed as html must be something in the php settings i need to ini_set something or something like that I have spent hours playing with the encoding content types etc has to be a php issue as it works fine as plain html.

just to clarify this khr2003

 

i have just uploaded both to one of my domains please check and let me know if you have the same problem on these as i am.

 

http:www//buyandsell123.com/test.html  works

http:www//buyandsell123.com/test.php  does not work for me

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.