Re: iconv with UTF-7-IMAP support
Moriyoshi Koizumi <[email protected]>
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Message-ID | <[email protected]> |
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 -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php