<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Maybe relevant:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.sencha.com/forum/showthread.php?60760-form-url-encoding-umlaute-problem">http://www.sencha.com/forum/showthread.php?60760-form-url-encoding-umlaute-problem</a><br>
<br>
I solved it with<br>
<br>
<html><br>
<head><br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"> <br>
<br>
<br>
<br>
On 01/02/2011 21:14, karsten vennemann wrote:
<blockquote cite="mid:96A3C64D2B8E4D05AF5C26589E11E370@snuggie"
type="cite">
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18999">
<!-- Converted from text/plain format -->
<p><font color="#000080" face="Arial" size="2">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>
<a class="moz-txt-link-freetext" href="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">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</a><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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>