Page 1 of 1

setting code page in php

Posted: Sun Jan 11, 2004 2:47 am
by pelegk2
how can i set the code page in the heade of the php file?
thnaks in advance
peleg

Posted: Sun Jan 11, 2004 6:34 am
by fastfingertips
For two posts i will give you 2 answers, perhaps you will read one of them :)

It is impossible to set the code page through PHP.

Posted: Sun Jan 11, 2004 6:52 am
by JAM
Do you mean like these:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
// vs.
<?php 
 header ('Content-Type: text/html; charset=iso-8859-1'); 
?>

Posted: Sun Jan 11, 2004 7:29 am
by pelegk2
yes like that