<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999"></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT color=#000080 size=2 face=Arial>Hi,<BR><BR>I am having trouble with the
encoding fo my German umlaut characters. I am not sure where to check any more
to fix this. The returned charaters set in firebug says:
Accept-Charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7 <BR><BR>In Openlayers I defined a layer with
the name "Gesch&auml;ftsstellen" (ä is replaced by &auml; to make sure
it renders fine in Html. This displays fine in the geoext tree panel and also
for the legends of the wms legend that is delivered by mapserver.<BR><BR>Now I
have two areas where I ran into problems:<BR>1. I have an OL
OpenLayers.Control.WMSGetFeatureInfo tool that triggers an wms getfeatureinfo
request to mapserver. Even though the returned thml (verified in firebug returns
"Geschäftsstellen" correctly in the geoext legend it displays wrong as literally
"Gesch&auml;ftsstellen" (whereas at the same time in the geoext tree panel
this shows correctly .<BR><BR>2. In the id tool result display I also have
problems where "ü" for München shows up as a
?mark.<BR>http://ec2-174-129-131-221.compute-1.amazonaws.com/cgi-bin/mapserv?map=/mnt/maps/vfs2.map&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=gemeinde&query_layers=gemeinde&styles=&bbox=1270621.066298%2C6106688.787547%2C1331006.318632%2C6159430.337054&srs=EPSG%3A900913&feature_count=3&x=228&y=343&height=690&width=790&info_format=text%2Fhtml<BR><BR>So
it apperas this wms request delivers correct characters but in the ext window it
displays wrong...<BR><BR> var info =
new
OpenLayers.Control.WMSGetFeatureInfo({<BR>
url:
'/cgi-bin/mapserv?map=/mnt/maps/vfs2.map',<BR>
title: 'Attribute anzeigen via
Klick',<BR>
queryVisible:
true,<BR>
maxFeatures:
3,<BR>
querylayers:
[regierungsbezirke,landkreise,gemeinde,flkgrenzenbayern,waldbesitzer],<BR>
layers:
[waldbesitzer,flkgrenzenbayern,gemeinde,landkreise,regierungsbezirke],<BR>
eventListeners:
{<BR>
getfeatureinfo: function(event)
{<BR>
idresult =
event.text;<BR>
idcount =
idcount++;<BR>
win[idcount] = new
Ext.Window({<BR>
layout:'fit',<BR>
title:
"Attributinformationen",<BR>
collapsed :
false,<BR>
collapsible :
true,<BR>
plain:
true,<BR>
bodyBorder :
false,<BR>
autoScroll :
true,<BR>
html:
"ok"<BR>
}); <BR>
win[idcount].html =
idresult; <BR>
win[idcount].show();<BR>
}<BR>
}<BR> <BR>
});<BR><BR><BR><BR>How can i fix
this...<BR>Cheers<BR>Karsten<BR><BR><BR></FONT></P></BODY></HTML>