Re: Finding the charset header

From: Date: Wed, 06 Dec 2000 14:36:13 +0000
Subject: Re: Finding the charset header
Groups: php.general 
Request: Send a blank email to php-general+get-28908@lists.php.net to get a copy of this message
I cannot see where imap_fetchstructure() would return the charset used. It returns transfer encodings but that's not stuff like UTF-8 or ISO-8859-1. Or is UTF-8 the same as encoding with 8BIT? UTF-7 = 7BIT? --- Johan Björk -----Ursprungligt meddelande----- Från: Sebastian Delmont <sdelmont@loquesea.com> Till: php-general@lists.php.net <php-general@lists.php.net> Datum: den 6 december 2000 14:27 Ämne: Re: [PHP] Finding the charset header >How are you accessing the email? > >If you are using the imap functions, imap_fetchstructure can give you that >information. > >Regards, > Sebastian > >""Johan Björk"" <johan@websidorna.com> wrote in message >news:018701c05f80$a833e600$e25843c3@johan.websidorna.com... >Hi folks. > >Here is a typical header line from an email: > >... >Content-Type: text/plain; charset=iso-8859-1 >... > >With the PHP-functions currently available in 4.0.3, are there any way of >finding out what the 'charset' field contains? I can't find anything about >it in the docs. I would parse it manually but why invent the wheel twice. > >--- >Johan Björk

« previous php.general (#28908) next »