RE: [PHP] HELP !! CHARACTER SET !!

From: Date: Tue, 05 Sep 2000 10:16:42 +0000
Subject: RE: [PHP] HELP !! CHARACTER SET !!
Groups: php.general 
Request: Send a blank email to php-general+get-15262@lists.php.net to get a copy of this message
If you are talking about headers created by PHP (4 usually) then it will not set them automatically if they are set already. for this is enough to write your own charset in header of the page and PHP will not touch them. Example: if you need to have it different in each page then just use something like this: if (substr ($SCRIPT_NAME, 0, 9) == "/japanese") { $myCharSet ="Shift_JIS"; $myDCLang ='JA'; } else { $myCharSet ="iso-8859-1"; $myDCLang ='EN'; } include the code above in your congif file and on every page have <head> <meta http-equiv="Content-Type" content="text/html; charset=<? echo $myCharSet; ?>"> <title>Title</title> </head> in this way only the pages in folder /japanese/ will have charset different from the default one which is set (see above) at english... is that what you asked? -----Original Message----- From: Nasser [mailto:nasser.bouzada@madourit.com] Sent: Tuesday, September 05, 2000 6:48 PM To: php-general@lists.php.net Subject: [PHP] HELP !! CHARACTER SET !! Hello !! Sorry if the question is realy stupid but Is it possible to change the 'character set' on php if yes how can we do it (I'm on Windoz) Thank you in advance DNass -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#15262) next »