At Wednesday 4 January 2006 11:45, Uwe Schindler you wrote:
> create a .htaccess file in the application directory where you use
> the "php_value" command to set this variable. See
> http://www.php.net/php_value
>
> The problem is that changing the charset in the script is too late
> (it is running so it cannot be changed anymore).

Why it's too late? The content type (so also the charset) is not setted until 
the first instruction of output, for example I can use (as said by Rasmus)
header("Content-type: text/html; charset=UTF-8");

From the manual:
" Remember that header() must be called before any actual output is sent, 
either by normal HTML tags, blank lines in a file, or from PHP. It is a very 
common error to read code with include(), or require(), functions, or another 
file access function, and have spaces or empty lines that are output before 
header() is called. The same problem exists when using a single PHP/HTML 
file."

Regards.
-- 
Graziano 'FreeJay' Liberati
---------------------------
Main developer of ZNF http://znf.zeronotice.com

Contacts
web: http://www.freejay.it
e-mail: [EMAIL PROTECTED]
icq: 98659824
msn: [EMAIL PROTECTED]

Attachment: pgpdHgORPAlBR.pgp
Description: PGP signature

Reply via email to