[OpenLayers-Users] character encoding
Arnd Wippermann
arnd.wippermann at web.de
Tue Dec 4 14:37:45 EST 2007
Hi,
If you use OpenLayers.loadURL(url, '', this, setHTML); like in the ol
example, then your request use Ajax. Therefor you need a proxy-script. In
this script you can change the special char to html entities.
With asp I use this function:
Response.Write server.HTMLEncode(objXmlHttp.responseText)
http://gis.ibbeck.de/ginfo/apps/olexamples/sphericalmercator/wms_getfeature.
html
Mit freundlichen Grüssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von R. Ortner
Gesendet: Dienstag, 4. Dezember 2007 12:15
An: users at openlayers.org
Betreff: [OpenLayers-Users] character encoding
hi,
I´ve still trouble with my special character encoding.
-The database is in Latin1 and in Win-1252 (both capable of special
caracters like ö,ä,ü,²,...) -the OL.php file is defined in the head sectoin
as Iso-8859-1 -the template.html specified in the mapfile is defined as
Iso-8859-1
when I call the GetFeatureInfo request in the browser it is displayed
correctly (also in qgis or gvsig), when i call it witin the OL application
no special character is displayed(only ? as symbols) not even the special
characters in "plain" text in the template file. (I have a table, in one row
i wrote some text like "länge" in the second row is the GetInfoRequest from
the database) Then it writes "l?nge" instead of "länge"
so i don´t think the database is responsible for that and not the template
file specified in Iso-8859-1!
is there a way to tell the mapserver to send the characters in Iso-8859-1 or
something in OL to define?
Because either the mapserver send it wrong or it is displayed wrong by
OL.
Or can I somehow send the encoding with the getFeatureInfo request?
--
View this message in context:
http://www.nabble.com/character-encoding-tf4942492.html#a14148746
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list