[mapserver-users] Characters codification problem in mapserver/postgis
Daniel Morissette
dmorissette at mapgears.com
Thu Apr 3 12:04:18 PDT 2008
Emilio Ponce wrote:
> Hi everyone!
>
> Recently I've done a simple mapfile (mapserver) that gets a postgis
> table and represents it. The problem is about the codification: The
> Postgis database is coded as UTF8 and when I represent a varchar column
> with mapserver the accents and especial characters are wrong. What can I
> do? Can I easily change the mapserver codification?
>
Is the problem with rendering labels on the map, or with displaying
attribute fields in HTML?
If the problem is with rendering labels on the map, have you tried
setting ENCODING "UTF-8" in your label definition in the mapfile?
If the problem is with displaying attribute values in HTML output then
you may need to make sure your HTML page contains the right encoding
specification in the HTML header.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list