shadiadiph Posted February 7, 2010 Share Posted February 7, 2010 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> Quote Link to comment Share on other sites More sharing options...
co.ador Posted February 7, 2010 Share Posted February 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted February 7, 2010 Author Share Posted February 7, 2010 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. Quote Link to comment Share on other sites More sharing options...
khr2003 Posted February 7, 2010 Share Posted February 7, 2010 both script work fine in my PC. I don't think it is a php problem. Try changing the encoding from the browser itself and see what happens. Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted February 7, 2010 Author Share Posted February 7, 2010 i have changed the browser encoding hundreds of times shows fine in htm version but not in the php version this is why i think it is a php configuration setting problem. Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted February 7, 2010 Author Share Posted February 7, 2010 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.