note 111031 modified in function.imap-fetchbody by danbrown
| From: | danbrown@php.net | Date: | Thu, 17 Jan 2013 15:21:13 +0000 |
| Subject: | note 111031 modified in function.imap-fetchbody by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193136@lists.php.net to get a copy of this message | ||
I had some problems with the german umlauts from a gmail fetched text. I lost an hour trying to find
a solution.
Hopefully this helps someone in need :)
<?php
$text = trim( utf8_encode( quoted_printable_decode(
imap_fetchbody( $this->inbox, $emailNo, $section ) ) ) );
$section was previously defined:
$section = empty( $attachments ) ? 1 : 1.1;
?>
--was--
I had some problems with the german umlauts from a gmail fetched text. I lost an hour trying to find
a solution.
Hopefully this helps someone in need :)
$text = trim( utf8_encode( quoted_printable_decode(
imap_fetchbody( $this->inbox, $emailNo, $section ) ) ) );
$section was previously defined:
$section = empty( $attachments ) ? 1 : 1.1;
http://php.net/manual/en/function.imap-fetchbody.php