paupepui

Errors in special characters with request esri.request through a proxy

Discussion created by paupepui on Nov 21, 2012
Latest reply on Nov 22, 2012 by geos_rfleet
Hello,

When I make a GetCapabilities request (also GetMap, ...) with esri.request through my proxy, the xml returned by the proxy come with strange characters, instead of the specials characters, such as accents, ...

The request I make:

var requestHandle = esri.request({
url: peticionCapabilities,
handleAs: "text",
load: respuestaCapabilities,
error: function(error){
alert("Dirección WMS incorrecta");
}
});

The response through proxy:

Request: http://cartoplora.cma.gva.es/proxypage/proxy.ashx?http://www.idee.es/wms/IDEE-Referencia/IDEE-Referencia?request=GetCapabilities&service=WMS

<?xml version="1.0" encoding="ISO-8859-1"?>
<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://www.idee.es/wms/schemas/capabilities_1_3_0.xsd">
<Service>
<Name>WMS</Name>
<Title>Redes Geod�sicas</Title>
<Abstract>Servicio Web de Mapas conforme a ISO/DIS 19128 que permite visualizar las redes geod�sicas del IGN</Abstract>
<KeywordList>
<Keyword>idee</Keyword>
<Keyword>referencia</Keyword>
<Keyword>ign</Keyword>
<Keyword>WMS</Keyword>
<Keyword>Espa�a</Keyword>
</KeywordList>
...


The response directly:

Request: http://www.idee.es/wms/IDEE-Referencia/IDEE-Referencia?request=GetCapabilities&service=WMS

<?xml version="1.0" encoding="ISO-8859-1"?>
<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://www.idee.es/wms/schemas/capabilities_1_3_0.xsd">
<Service>
<Name>WMS</Name>
<Title>Redes Geodésicas</Title>
<Abstract>Servicio Web de Mapas conforme a ISO/DIS 19128 que permite visualizar las redes geodésicas del IGN</Abstract>
<KeywordList>
<Keyword>idee</Keyword>
<Keyword>referencia</Keyword>
<Keyword>ign</Keyword>
<Keyword>WMS</Keyword>
<Keyword>España</Keyword>
...


Is there any solution?

Thanks

Pau Pérez Puigcerver
--------------------------------------------------------
Prodevelop, Integración de tecnologÃas
http://www.prodevelop.es
--------------------------------------------------------
Conselleria d'Infraestructures, Territori i Medi Ambient
C./ Francisco Cubells, 7
46011 Valencia
Email: asistenciagis2_ctv@gva.es
http://www.cma.gva.es

Outcomes