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
Share on other sites

I think you have to set up your script to display utf-8 unicode.

 

the utf-8 is a universal character encoding use to display all the languages codes characters.

 

Try and research some about utf-8.

 

I think that will get you in the right path.

Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.