On Mon, Aug 28, 2006 at 03:02:29PM +0200, Trond Michelsen wrote:
> layer: {
> layers: decodeURIComponent('[layers_esc]').split(' '),
> toogle_layers: decodeURIComponent('[toggle_layers_esc]').split(' ')
> },
> }> I'm using decodeURIComponent() combined with the _esc-variant of the > variables that could contain ', to prevent syntax errors during eval(). Bah! Of course, it turns out that decodeURIComponent chokes on non-utf8 8bit-sequences. unescape() should be used instead. -- Trond Michelsen
