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> Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/ 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. Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/#findComment-1008144 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. Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/#findComment-1008147 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. Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/#findComment-1008160 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. Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/#findComment-1008162 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 Link to comment https://forums.phpfreaks.com/topic/191210-php-language-display-problems/#findComment-1008169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.