dBox with mode=itemquery or itemnquery

Trond Michelsen trondmm-mapserver at CRUSADERS.NO
Mon Aug 28 13:03:49 EDT 2006


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



More information about the mapserver-users mailing list