setting code page in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

setting code page in php

Post by pelegk2 »

how can i set the code page in the heade of the php file?
thnaks in advance
peleg
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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'); 
?>
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Post by pelegk2 »

yes like that
Post Reply