[mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252
Jeff McKenna
jmckenna at gatewaygeomatics.com
Tue Feb 8 06:48:49 PST 2011
Hello,
A quick thought that I had when I read your issue, is that I recently
came across a similar issue when I was working with Japanese data. In
that case for MapServer to display query results in my template
properly, I had to change the character set in the HTML template file,
otherwise the characters would be garbled:
<!-- MapServer Template -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>照会</title>
...
I'm not sure if that is related to your exact issue, but those are my
quick thoughts.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-02-08 10:37 AM, Siegel Andreas wrote:
> Hi.
> Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver,
> postgres, ..) with one exception, that is, all of our shapefiles.
> The shapfiles are created/updated in an Windows-environment by several,
> external contributors.
> Hence they are encoded in Wiindows-ANSI (cp: 1252).
> If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all
> special characters ("umlauts") are garbled.
> This is no wonder since the content of the shapefile-attributes must be
> recoded to utf-8 prior to insertion in the template.html.
> How can this be acomplished? I could not find anything useful in the
> documentation or with google.
> *Mag Andreas Siegel*
More information about the MapServer-users
mailing list