Re: iconv with UTF-7-IMAP support
| From: | Moriyoshi Koizumi | Date: | Sun, 30 May 2004 06:17:23 +0000 |
| Subject: | Re: iconv with UTF-7-IMAP support | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-726@lists.php.net to get a copy of this message | ||
On 2004/05/23, at 2:32, Bjai wrote:
To summarize I think it is required to add a null character to end each UTF-7 IMAP encoded character: result = iconv(cd, (char **) NULL, &in_left, (char **) &out_p, &out_left); I have made several attempts to add the above line into the php_iconv_string function, but it didn't work (compiling is ok).I think the following line in iconv.c is exactly what should be done there. http://cvs.php.net/co.php/php-src/ext/iconv/iconv.c?r=1.65.2.11#418 I'll try out the patch if I have enough time. Note that mbstring extension supports UTF-7 IMAP encoding by default. Regards, Moriyoshi