[Users] encoding getfeatureinfo, geoext legend panel and tree

geographika geographika at gmail.com
Tue Feb 1 21:18:54 CET 2011


Maybe relevant:

http://www.sencha.com/forum/showthread.php?60760-form-url-encoding-umlaute-problem

I solved it with

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">



On 01/02/2011 21:14, karsten vennemann wrote:
>
> Hi,
>
> 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
>
> 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.
>
> Now I have two areas where I ran into problems:
> 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 .
>
> 2. In the id tool result display I also have problems where "ü" for 
> München shows up as a ?mark.
> 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
>
> So it apperas this wms request delivers correct characters but in the 
> ext window it displays wrong...
>
>         var info = new OpenLayers.Control.WMSGetFeatureInfo({
>             url: '/cgi-bin/mapserv?map=/mnt/maps/vfs2.map',
>             title: 'Attribute anzeigen via Klick',
>             queryVisible: true,
>             maxFeatures: 3,
>             querylayers: 
> [regierungsbezirke,landkreise,gemeinde,flkgrenzenbayern,waldbesitzer],
>             layers: 
> [waldbesitzer,flkgrenzenbayern,gemeinde,landkreise,regierungsbezirke],
>             eventListeners: {
>               getfeatureinfo: function(event) {
>                 idresult =  event.text;
>                 idcount = idcount++;
>                 win[idcount] = new Ext.Window({
>                               layout:'fit',
>                               title: "Attributinformationen",
>                               collapsed : false,
>                               collapsible : true,
>                               plain: true,
>                               bodyBorder : false,
>                               autoScroll : true,
>                               html: "ok"
>                 });
>                 win[idcount].html = idresult;
>                 win[idcount].show();
>               }
>             }
>
>         });
>
>
>
> How can i fix this...
> Cheers
> Karsten
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110201/782b8c0e/attachment.htm 


More information about the Users mailing list