[Mapserver-users] HTML characters in template
Berend Veldkamp
berend.veldkamp at aris.nl
Thu Jan 9 08:36:41 PST 2003
That shouldn't be too hard if you just convert the basic characters
that could mess up html code: <, >, " and maybe &. If you want to
convert all characters (å, é, , ...) you'd need to know which
characterset the data is in. But most modern browsers display these
characters ok anyway, so it's not a priority, I guess.
BTW It would be nice if 'characterset' was a property of the layer
object, we sometimes experience problems when maplabels contain
special characters, or can this be changed in some way already?
Berend
Steve Lime wrote:
>
> Yup, but I'm not sure it fixes your problem. The _esc replacement is
> basically there so you could escape data for inclusion in other URLs.
> Special characters are replaced with their hexidecimal ascii codes so a
> space becomes %20 and so on. I think what you want is html escapes and
> we'd need to add that, probably as another substitution qualifier:
>
> [variable_html] or something like that
>
> Thoughts?
>
> Steve
>
> --
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
More information about the MapServer-users
mailing list