[imp] address book -> compose window

Chuck Hagenbuch chuck at horde.org
Tue Sep 7 11:37:53 PDT 2004

Quoting Rong-En Fan <rafan at csie.org>:

> Current implementation in contacts.inc is
> not multibyte friendly. The reason is that,
> the option's value uses php's rawurlencode()
> which encode string byte by byte. Then,
> the value goes to updateMessage(), it uses
> unescape() to decode the option value.
> But in ECMA spec, string is multibyte-aware,
> when it comes to escape(), it produces output
> like %uXXXX (You can take a look at mozilla's
> source: js/jsstr.c).

What about replacing the rawurlencode() calls with calls to MIME::encode()?

We might then need a javascript version of MIME::decode(), I guess, but 
it would
take care of the multibyte issues, would it not?


"Regard my poor demoralized mule!" - Juan Valdez

More information about the imp mailing list