A.J.Mechelynck wrote:
it may be that the "headers" you talk about must be in 7-bit US-ASCII: in that case it might be simplest to edit the headers as a separate file with
These headers I talk about are HTTP headers, and according to protocol, they should be sent out to the client *before* any content is sent. Now php files look the following:
<?php
code comes here, where I send HTTP headers with a function
?>
inside the file I use special characters (Hungarian), for which I need them to be encoded UTF-8, as the site is in that. the interpreter executes code between <? and ?>, and doesn't output it's content, but outputs everything else in the file. The BOM marks are located *before* the <?, and thus is considered content by the interpreter, and is sent to the client.

Peter

Reply via email to