Hi, Paco<br>
<br>
Can you check if you have set correctly NLS_LANG environment variable for mapserver<br>
for example, if you use mapserver with apache in cgi mode, add to your conf file :<br>
<br>
Set NLS_LANG ...<br>
<br>
Regards, Michael<br><br>
<br><div class="gmail_quote">2009/9/2 Paco <span dir="ltr"><<a href="mailto:fgines@hotmail.com" target="_blank">fgines@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello list,<br>
I`ve problemas with OpenLayer/MapServer and the Spanish characters (Ñ).<br>
If I go to Mapserver directly with WMS there is no problem, but if I recuest<br>
the map with Openlayer he don’t show me the correct characters (España – Espa?a)<br>
I’ve tried with OpenLayers.Lang["es"]; o OpenLayers.Lang.setCode('es');<br>
<br>
Any suggestions of how to solve this problem.<br>
Thanks for your ideas?<br>
Paco<br>
<br>
WMS request<br>
<a href="http://hostname/cgi-bin/wms-file?SERVICE=WMS&VERSION=1.1.1&" target="_blank">http://hostname/cgi-bin/wms-file?SERVICE=WMS&VERSION=1.1.1&</a> REQUEST=GetMap&<br>
layers=toponimia& bbox=368850,4063000,375000,4067300&srs=epsg:23030<br>
&format=image/png&width=400&height=400&styles=<br>
<br>
the mapfile layer:<br>
<br>
LAYER<br>
NAME "toponimia"<br>
METADATA<br>
"wms_title" "Toponimia"<br>
"wms_srs" "EPSG:23030"<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:23030"<br>
END<br>
<br>
TYPE annotation<br>
STATUS on<br>
<br>
LABELMINSCALEDENOM 1<br>
LABELMAXSCALEDENOM 5000<br>
<br>
CONNECTIONTYPE oraclespatial<br>
CONNECTION "table/pasww@db"<br>
<br>
DATA "SDOPUNTO FROM (SELECT POSICION, TEXTO, ROTACION, SDOPUNTO<br>
FROM TOTPNMVIAL_T<br>
INNER JOIN TPNMVIAL …….<br>
WHERE …….) USING NONE"<br>
<br>
DUMP TRUE<br>
<br>
CLASS<br>
NAME "Textos cc"<br>
TEXT ([TEXTO])<br>
LABEL<br>
TYPE truetype<br>
FONT arial<br>
SIZE 8<br>
POSITION cc<br>
ANGLE [ROTACION]<br>
COLOR 25 25 112<br>
END<br>
END<br>
END<br>
<br>
<br>
The Script:<br>
layer = new OpenLayers.Layer.WMS( "Cartografia", url,<br>
{layers: "toponimia"}, {singleTile: true, ratio: 2.0 });<br>
<br>
var options = { maxExtent: maxBounds,<br>
scales: [50000,25000,10000,5000,2000,1000],<br>
projection: "EPSG:23030", units: "m",<br>
controls: [ new OpenLayers.Control.Navigation(),<br>
new OpenLayers.Control.PanZoomBar(),<br>
new OpenLayers.Control.ScaleLine(),<br>
new OpenLayers.Control.LayerSwitcher(),<br>
new OpenLayers.Control.KeyboardDefaults()<br>
], numZoomLevels: 6};<br>
<br>
map = new OpenLayers.Map( 'map', options);<br>
map.addLayers([layer]);<br>
var lonLat = new OpenLayers.LonLat( "${X}", "${Y}");<br>
map.setCenter(lonLat,4);<br>
<br>
and in the header:<br>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>