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