Patch for imap.inc: Fixes #1483977 and #1483886

till klimpong at gmail.com
Wed Nov 22 19:41:26 CET 2006


> Alexander Griesser wrote:
> (...)
> The patch can also be downloaded here:
> http://tuxx-home.at/projects/roundcubemail/roundcubemail-loginumlauts.diff
> (...)

In regard to this, I think one should *always* check if the data is
really UTF-8 before you decode it. E.g. if roundcube gets integrated
into an environment where no UTF-8 is used, the utf8_decode() would
break the string supplied.

Example: "äöü" in ISO-8859-1, after a utf8_decode() only a "?" is left
of the string.

I wrote a small blog entry to illustrate encoding-difficulties a while
back. While it's specifically a Smarty modifier, maybe it's still
useful for someone:
http://blog.klimpong.de/archives/2006/10/permanent_uft8.html

Cheers,
--
Till Klampaeckel
e: mailto:klimpong at gmail.com
p: +491704018676
l: http://beta.plazes.com/whereis/till

Want to know what's up in Berlin?
- http://berlin.metblogs.com




More information about the Dev mailing list