Re: php utf8 encode

From: Date: Thu, 28 Nov 2002 15:37:13 +0000
Subject: Re: php utf8 encode
References: 1 2  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-367@lists.php.net to get a copy of this message
PHP does output UTF8 encoding header( 'Content-type: text/html; charset=utf-8' ); You need to send headers before any text/html output started., so the there should not be any carriage returns before the first "<?php" Also you need to save your PHP file as UTF-8 encoded, if you include unicode characters in the php itself. You can use notepad Save As.... UPF-8, but it's not good, because it sends out the signature, and it happens before you can send any headers, sessions, cookies etc.... Microsoft Developer Studio does right job. - Advanced Save Options - utf8-without signature You have to keep some unicode characters in your file to maintain the setting from save to save, because if you just have english characters, it will be the same as ANSI "Javi Lavandeira" <ag0ny@ag0ny.com> wrote in message news:20021123003203.11d43b0b.ag0ny@ag0ny.com... > Hi, > > > Yes, i sent this header information but it's just informative for the > > browser and i can manually select the encoding to UTF-8 from the browser, > > but that's not the case, because the php output simply isn't utr-8 :) > > and all i see is shits :). > > Could you give me the URL of some example of this problem so I can take a look at it? > > Regards, > > -- > Javi Lavandeira (ag0ny@ag0ny.com) - http://www.ag0ny.com

« previous php.i18n (#367) next »