Hi,
2009/3/17 Dipl. Inf. Carsten Eider <[email protected]>:
> Hi list,
>
> i am using OpenLayers.Request.POST to send some xml data to
> a servlet. This data includes the famous german special charactesr like
> "ÜÖÄßüöä".
> Using tomcat on windows nearly everything works fine,
> using it on linux it fails
> The special characters result in "Ã?öÃ1/4ÃÃÃÃ"
> I know it is a encoding issue, but i don't know how to solve it
>
> Can i set the encoding on OpenLayers.Request.POST?
You can, e.g.:
var xhr = OpenLayers.Request.POST({
...
headers: {
"Content-Type": "text/xml; charset=utf-8"
}
});
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users