zwu_ca Posted December 9, 2004 Share Posted December 9, 2004 It is well-known for apache, if AddCharset set to on or ISO-*, it will not interpret the page encoding correctly. For example, I use gb2312 and see <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> in the page, the page still is not displayed correctly. I have to put header("Content-type: text/html; Charset=gb2312"); in the index.php to correct the header for the webserver (since I have no control for the server I played with, I cannot change the config). Can anyone tell me where I should put the line of code? I'm new to PHP. I also think the code should be correct with this correction to the code base. Zhou Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.