|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 22:07 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 09:00:01 2025 UTC |
We have a php installation with the default charset set to "UTF-8" in the php.ini file (default_charset = "UTF-8") because we handle japanese and latin content from the database. In each page, we specify its charset: if(the current language is japanese) { $strMeta='<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">'; header("Content-type: text/html; CHARSET=UTF-8",true); } else { $strMeta='<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=ISO-8859-1">'; header("Content-type: text/html; CHARSET=ISO-8859-1",true); } With the 4.2.2 version of php we had no problem, but since we updated to 4.2.3, every call to "echo" outputing a text constant like: echo "<html><head><title>"... doesn't work anymore, but echoing data comming from the database works perfectly. Removing the lines containing the header() function in our scripts resolves this problem, but the page doesn't show properly depending on the language selected in the website. In php 4.2.2 we don't see this issue happening, so it seems to be a 4.2.3 related problem.