I think it can't work if the server has set the default_charset in the
php.ini .

eg:
if in php.ini has:
default_charset="gb_2312"
then only changing the charset in html page didn't work.
>>header('Content-type: text/html; charset=UTF-8');


----- Original Message -----
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "Junaid Saeed Uppal" <[EMAIL PROTECTED]>
Cc: "PHP Lists" <[EMAIL PROTECTED]>
Sent: Sunday, March 07, 2004 6:56 AM
Subject: Re: [PHP] Changing Default Charset


On Sat, 2004-03-06 at 12:19, Junaid Saeed Uppal wrote:
> Hello There,
>
> I am on a shared account server ( virtual hosting ) given by my provider.
I
> want to change my charset that php uses to utf-8 but the default setting
is
> some other charset. Can I put some local directives in the directory of
my
> proggie to force php to use charset( UTF-8 ) instead of the regular
charset
> defined in php.ini


header('Content-type: text/html; charset=UTF-8');


--
Brian V Bonini <[EMAIL PROTECTED]>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to