-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, November 30, 2007 5:45 AM To: users@openlayers.org Subject: Users Digest, Vol 14, Issue 70
Send Users mailing list submissions to users@openlayers.org To subscribe or unsubscribe via the World Wide Web, visit http://openlayers.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..." Today's Topics: 1. Re: Text Layer in projection != 4326 ? (Bart van den Eijnden (OSGIS)) 2. Re: ISO-8859-1 (Bart van den Eijnden (OSGIS)) 3. Re: ISO-8859-1 (R. Ortner) ---------------------------------------------------------------------- Message: 1 Date: Fri, 30 Nov 2007 11:29:27 +0100 From: "Bart van den Eijnden (OSGIS)" <[EMAIL PROTECTED]> Subject: Re: [OpenLayers-Users] Text Layer in projection != 4326 ? To: "RIVIERE Robert - CETE M?diterr./DI/ETER" <[EMAIL PROTECTED]> Cc: users@openlayers.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed We use it in the Dutch National Grid without problems. Are you aware that you need to use Y,X in your textfile instead of X,Y? Best regards, Bart RIVIERE Robert - CETE M?diterr./DI/ETER schreef: > Hello, > > I'm trying to use the Text Layer from a flat file as shown in > http://www.openlayers.org/dev/examples/markersTextLayer.html > > It works perfectly, but if I switch to another projection (with corresponding x,y for markers in the text file, of course), I can't see anymore the markers. > > Here are parts of the code : > > map = new OpenLayers.Map('map',{ > 'projection': 'EPSG:27582', > 'units':'meters', > 'maxExtent': new OpenLayers.Bounds(750000,1760000,985000,1930000), > 'maxResolution':'auto' > }); > ... > var newl = new OpenLayers.Layer.Text( "text", {location: "textfile.txt"} ); > map.addLayer(newl); > > and the test textfile.txt : > 882000.,1830000. my orange title my orange description > > Am I missing something ? Or Layer.Text doesn't support all projections ? > > Thanks a lot > > Robert > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > > -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ------------------------------ Message: 2 Date: Fri, 30 Nov 2007 11:33:15 +0100 From: "Bart van den Eijnden (OSGIS)" <[EMAIL PROTECTED]> Subject: Re: [OpenLayers-Users] ISO-8859-1 To: "R. Ortner" <[EMAIL PROTECTED]> Cc: users@openlayers.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=UTF-8; format=flowed That site probably does some server-side trick, since if you look in their GetFeatureInfo responses the special characters have been translated to htmlentities: <p id="Text1">Gletscherkessel Präg</p> Best regards, Bart R. Ortner schreef: > Hi, > > i?m now a little confused... > I looked at > http://rips-uis.lubw.baden-wuerttemberg.de/rips/wms_viewer/openlayer_tes t/OpenLayers.php > cause i use the same GetFeatureInfo request (see below). They also use > responseText with innerHTML and they can display special characters with no > problem. > > If I open the request in a new window everything is displayed correct but > with the "normal" call within the application (like the lubw application) > the special characters shown as ?. > > Any idea where else the problem could be? > > > function checkinfo(imgid,url,title){ > > if (infobox == 0) {infobox = 1;} > if (imgid == oldimgid) {infobox = 0;} > id = imgid.substring(3,imgid.length); > if(infobox == 1 && document.getElementById(id).checked==true) { > document.getElementById('map').style.cursor = 'crosshair'; > document.getElementById(imgid).src = "img/treemenu/identify_2.gif"; > if (oldimgid != null) document.getElementById(oldimgid).src = > "img/treemenu/identify_1.gif"; > oldimgid = imgid; > document.getElementById('nodeList').style.visibility = 'visible'; > > map.events.register('click', map, function (e) { > if(infobox == 1 && document.getElementById(id).checked==true) { > document.getElementById('map').style.cursor = 'crosshair'; > OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... > please wait..."; > var request = window[id].getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > BBOX: window[id].map.getExtent().toBBOX(), > X: e.xy.x, > Y: e.xy.y, > INFO_FORMAT: 'text/html', > QUERY_LAYERS: window[id].params.LAYERS, > WIDTH: window[id].map.size.w, > HEIGHT: window[id].map.size.h}); > OpenLayers.loadURL(request, '', this, setHTML); > OpenLayers.Event.stop(e); > } > }); > } > else { > document.getElementById('map').style.cursor = 'auto'; > document.getElementById('nodeList').style.visibility = 'hidden'; > if (imgid == oldimgid) { oldimgid = null; } else { oldimgid = imgid; > } > document.getElementById('nodeList').innerHTML = "??"; > infobox = 0; > document.getElementById(imgid).src = "img/treemenu/identify_1.gif"; > } > } > > function setHTML(response) { > OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText; > } > > > > ---- > > Bart van den Eijnden (OSGIS)-2 wrote: > >> You can use an iframe and set it's source (src) to the GetFeatureInfo URL. >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: R. Ortner <[EMAIL PROTECTED]> >> Naar: users@openlayers.org <users@openlayers.org> >> Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >> Datum: 29/11/07 07:52 >> >> >>> that will work basically. Now i can open the info in a new window and it >>> >> will >> >>> diplayed correctly. >>> >>> but i need to find out a way to disply it within the application. maybe >>> >> not >> >>> with innerHTML but with something different. Can i use something else >>> >> except >> >>> innerHTML to place it e.g. in the top right corner? >>> >>> ---- >>> >>> Bart van den Eijnden (OSGIS)-2 wrote: >>> > >>> > ResponseXML will only work if the content-type (set in the http >>> >> headers) >> >>> > is >>> > text/xml. Then ofcourse you won't be able to set it to the innerHTML >>> >> since >> >>> > it is not a string. >>> > >>> > I tend to believe you can only get this done using (UTF-8 and HTML) >>> >> or >> >>> > (ISO8859 and XML) if you use AJAX. >>> > >>> > What happens if you just popup a new window with the url: >>> > >>> > So instead of: >>> > >>> > OpenLayers.loadURL(request, '', this, setHTML); >>> > >>> > try: >>> > >>> > window.open(request); >>> > >>> > Best regards, >>> > Bart >>> > >>> > -- >>> > Bart van den Eijnden >>> > OSGIS, Open Source GIS >>> > http://www.osgis.nl >>> > >>> > >>> > --------- Oorspronkelijk bericht -------- >>> > Van: R. Ortner <[EMAIL PROTECTED]> >>> > Naar: users@openlayers.org <users@openlayers.org> >>> > Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >>> > Datum: 29/11/07 06:37 >>> > >>> >> >>> >> Heres my code for the getfeatureinfo part: >>> >> >>> >> function checkinfo(imgid,url,title){ >>> >> >>> >> if (infobox == 0) {infobox = 1;} >>> >> if (imgid == oldimgid) {infobox = 0;} >>> >> id = imgid.substring(3,imgid.length); >>> >> if(infobox == 1 &amp;&amp; >>> >> document.getElementById(id).checked==true) { >> >>> >> document.getElementById('map').style.cursor = >>> 'crosshair'; >>> >> document.getElementById(imgid).src = >>> > &quot;img/treemenu/identify_2.gif&quot;; >>> >> if (oldimgid != null) >>> >> document.getElementById(oldimgid).src = >> >>> >> &quot;img/treemenu/identify_1.gif&quot;; >>> >> oldimgid = imgid; >>> >> document.getElementById('nodeList').style.visibility = >>> > 'visible'; >>> >> >>> >> map.events.register('click', map, function (e) { >>> >> if(infobox == 1 &amp;&amp; >>> >> document.getElementById(id).checked==true) >> >>> > { >>> >> document.getElementById('map').style.cursor = >>> 'crosshair'; >>> >> OpenLayers.Util.getElement('nodeList').innerHTML = >>> > &quot;Loading... >>> >> please wait...&quot;; >>> >> var request = window[id].getFullRequestString({ >>> >> REQUEST: >>> >> &quot;GetFeatureInfo&quot;, >> >>> >> EXCEPTIONS: >>> > &quot;application/vnd.ogc.se_xml&quot;, >>> >> BBOX: >>> >> window[id].map.getExtent().toBBOX(), >> >>> >> X: e.xy.x, >>> >> Y: e.xy.y, >>> >> INFO_FORMAT: 'text/html', >>> >> QUERY_LAYERS: >>> >> window[id].params.LAYERS, >> >>> >> WIDTH: window[id].map.size.w, >>> >> HEIGHT: window[id].map.size.h}); >>> >> OpenLayers.loadURL(request, '', this, setHTML); >>> >> OpenLayers.Event.stop(e); >>> >> } >>> >> }); >>> >> } >>> >> else { >>> >> document.getElementById('map').style.cursor = 'auto'; >>> >> document.getElementById('nodeList').style.visibility = >>> >> 'hidden'; >> >>> >> if (imgid == oldimgid) { oldimgid = null; } else { >>> >> oldimgid = >> >>> > imgid; >>> >> } >>> >> document.getElementById('nodeList').innerHTML = >>> >> &quot;&quot;; >> >>> >> infobox = 0; >>> >> document.getElementById(imgid).src = >>> > &quot;img/treemenu/identify_1.gif&quot;; >>> >> } >>> >> } >>> >> >>> >> function setHTML(response) { >>> >> OpenLayers.Util.getElement('nodeList').innerHTML = >>> > response.responseText; >>> >> } >>> >> >>> >> >>> >> I tried to change the response.responseText to responseXML as u >>> >> told, but >> >>> >> than the Info is not displayed any more. (after mouseclick i see >>> >> short >> >>> >> the >>> >> Loading... please wait... and than nothing!) >>> >> do i have then to change something about my template to, maybe >>> >> with the >> >>> >> responseXML the template is not correct anymore? >>> >> >>> >> >>> >> ---- >>> >> >>> >> >>> >> >>> >> Bart van den Eijnden (OSGIS)-2 wrote: >>> >> &gt; >>> >> &gt; Can you explain code-wise how you perform the >>> >> GetFeatureInfo >> >>> >> request? >>> >> &gt; >>> >> &gt; If the code uses responseText instead of responseXML, >>> it >>> >> can only >> >>> > work in >>> >> &gt; UTF-8. >>> >> &gt; >>> >> &gt; See also some threads in september titled loading XML >>> >> problem, e.g.: >> >>> >> &gt; >>> >> &gt; >>> >> http://openlayers.org/pipermail/users/2007-September/003001.html >> >>> >> &gt; >>> >> &gt; Best regards, >>> >> &gt; Bart >>> >> &gt; >>> >> &gt; -- >>> >> &gt; Bart van den Eijnden >>> >> &gt; OSGIS, Open Source GIS >>> >> &gt; http://www.osgis.nl >>> >> &gt; >>> >> &gt; >>> >> &gt; --------- Oorspronkelijk bericht -------- >>> >> &gt; Van: R. Ortner >>> >> &lt;[EMAIL PROTECTED]&gt; >> >>> >> &gt; Naar: users@openlayers.org >>> >> &lt;users@openlayers.org&gt; >> >>> >> &gt; Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >>> >> &gt; Datum: 29/11/07 06:00 >>> >> &gt; >>> >> &gt;&gt; >>> >> &gt;&gt; Hi again, >>> >> &gt;&gt; >>> >> &gt;&gt; i tried to set the charset by adding >>> >> &amp;lt;meta >> >>> >> &gt; http-equiv=&amp;quot;content-type&amp;quot; >>> >> &gt;&gt; content=&amp;quot;text/html; >>> >> charset=ISO-8859-1&amp;quot; >> >>> > /&amp;gt; to the head of >>> >> &gt;&gt; the >>> >> &gt; template file >>> >> &gt;&gt; and by adding it to my OL index.php. I also set >>> >> the apache >> >>> > defaultCharset >>> >> &gt; to >>> >> &gt;&gt; ISO-8859-1 but i still have some special >>> >> characters displayed >> >>> > wrong. >>> >> &gt;&gt; >>> >> &gt;&gt; So i gess that must be something in the >>> >> OpenLayers Code where >> >>> >> the >>> > Charset >>> >> &gt; is >>> >> &gt;&gt; set &amp;quot;wrong&amp;quot;! >>> >> &gt;&gt; >>> >> &gt;&gt; If i try to open the template file (template >>> >> file for a >> >>> > getFeatrueInfo >>> >> &gt;&gt; request the characters displayed correctly! >>> only >>> >> wrong when OL >> >>> >> is >>> >> &gt; involved) >>> >> &gt;&gt; >>> >> &gt;&gt; hope some developer can tell me how to change >>> >> the default >> >>> >> charset >>> > of OL >>> >> &gt;&gt; >>> >> &gt;&gt; thx >>> >> &gt;&gt; >>> >> &gt;&gt; ---- >>> >> &gt;&gt; >>> >> &gt;&gt; >>> >> &gt;&gt; R. Ortner wrote: >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; Hi, >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; where to tell OL to show the >>> >> getFeatureInfo request in >> >>> > ISO-8859-1? >>> >> &gt;&gt; (i >>> >> &gt; need >>> >> &gt;&gt; &amp;gt; special character support) >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; so far i get as a result of my >>> >> request for every >> >>> >> special >>> > character >>> >> &gt; like ? >>> >> &gt;&gt; &amp;gt; or ? -&amp;gt; ??? (FF) /? (in >>> >> IE). >> >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; regards >>> >> &gt;&gt; &amp;gt; R. Ortner >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; >>> >> &gt;&gt; -- >>> >> &gt;&gt; View this message in context: >>> >> &gt; >>> >> http://www.nabble.com/ISO-8859-1-tf4887822.html#a14021006 >> >>> >> &gt;&gt; Sent from the OpenLayers Users mailing list >>> >> archive at >> >>> > Nabble.com. >>> >> &gt;&gt; >>> >> &gt;&gt; _______________________________________________ >>> >> &gt;&gt; Users mailing list >>> >> &gt;&gt; Users@openlayers.org >>> >> &gt;&gt; http://openlayers.org/mailman/listinfo/users >>> >> &gt;&gt; >>> >> &gt; >>> >> &gt; >>> >> &gt; >>> >> &gt; _______________________________________________ >>> >> &gt; Users mailing list >>> >> &gt; Users@openlayers.org >>> >> &gt; http://openlayers.org/mailman/listinfo/users >>> >> &gt; >>> >> &gt; >>> >> >>> >> -- >>> >> View this message in context: >>> > http://www.nabble.com/ISO-8859-1-tf4887822.html#a14021264 >>> >> Sent from the OpenLayers Users mailing list archive at >>> >> Nabble.com. >> >>> >> >>> >> _______________________________________________ >>> >> Users mailing list >>> >> Users@openlayers.org >>> >> http://openlayers.org/mailman/listinfo/users >>> >> >>> > >>> > >>> > >>> > _______________________________________________ >>> > Users mailing list >>> > Users@openlayers.org >>> > http://openlayers.org/mailman/listinfo/users >>> > >>> > >>> >>> -- >>> View this message in context: >>> >> http://www.nabble.com/ISO-8859-1-tf4887822.html#a14022546 >> >>> Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >>> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ------------------------------ Message: 3 Date: Fri, 30 Nov 2007 02:44:29 -0800 (PST) From: "R. Ortner" <[EMAIL PROTECTED]> Subject: Re: [OpenLayers-Users] ISO-8859-1 To: users@openlayers.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=UTF-8 Well maybe thats the problem on my side! Another Question: Do u know how to adapt this request to query a ka-map layer? because if i do now i only get some weired response: ?PNG ??? IHDR?????????f?:[EMAIL PROTECTED] ??? ?Om7?????????? !???`??????IEND?B`? ---- That site probably does some server-side trick, since if you look in their GetFeatureInfo responses the special characters have been translated to htmlentities: <p id="Text1">Gletscherkessel Präg</p> Best regards, Bart ---- R. Ortner wrote: > > Hi, > > i?m now a little confused... > I looked at > http://rips-uis.lubw.baden-wuerttemberg.de/rips/wms_viewer/openlayer_tes t/OpenLayers.php > cause i use the same GetFeatureInfo request (see below). They also use > responseText with innerHTML and they can display special characters with > no problem. > > If I open the request in a new window everything is displayed correct but > with the "normal" call within the application (like the lubw application) > the special characters shown as ?. > > Any idea where else the problem could be? > > > function checkinfo(imgid,url,title){ > > if (infobox == 0) {infobox = 1;} > if (imgid == oldimgid) {infobox = 0;} > id = imgid.substring(3,imgid.length); > if(infobox == 1 && document.getElementById(id).checked==true) { > document.getElementById('map').style.cursor = 'crosshair'; > document.getElementById(imgid).src = "img/treemenu/identify_2.gif"; > if (oldimgid != null) document.getElementById(oldimgid).src = > "img/treemenu/identify_1.gif"; > oldimgid = imgid; > document.getElementById('nodeList').style.visibility = > 'visible'; > > map.events.register('click', map, function (e) { > if(infobox == 1 && document.getElementById(id).checked==true) { > document.getElementById('map').style.cursor = 'crosshair'; > OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... > please wait..."; > var request = window[id].getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > BBOX: window[id].map.getExtent().toBBOX(), > X: e.xy.x, > Y: e.xy.y, > INFO_FORMAT: 'text/html', > QUERY_LAYERS: window[id].params.LAYERS, > WIDTH: window[id].map.size.w, > HEIGHT: window[id].map.size.h}); > OpenLayers.loadURL(request, '', this, setHTML); > OpenLayers.Event.stop(e); > } > }); > } > else { > document.getElementById('map').style.cursor = 'auto'; > document.getElementById('nodeList').style.visibility = 'hidden'; > if (imgid == oldimgid) { oldimgid = null; } else { oldimgid = > imgid; } > document.getElementById('nodeList').innerHTML = "??"; > infobox = 0; > document.getElementById(imgid).src = "img/treemenu/identify_1.gif"; > } > } > > function setHTML(response) { > OpenLayers.Util.getElement('nodeList').innerHTML = > response.responseText; > } > > > > ---- > > Bart van den Eijnden (OSGIS)-2 wrote: >> >> You can use an iframe and set it's source (src) to the GetFeatureInfo >> URL. >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: R. Ortner <[EMAIL PROTECTED]> >> Naar: users@openlayers.org <users@openlayers.org> >> Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >> Datum: 29/11/07 07:52 >> >>> >>> that will work basically. Now i can open the info in a new window and it >> will >>> diplayed correctly. >>> >>> but i need to find out a way to disply it within the application. maybe >> not >>> with innerHTML but with something different. Can i use something else >> except >>> innerHTML to place it e.g. in the top right corner? >>> >>> ---- >>> >>> Bart van den Eijnden (OSGIS)-2 wrote: >>> > >>> > ResponseXML will only work if the content-type (set in the http >> headers) >>> > is >>> > text/xml. Then ofcourse you won't be able to set it to the >>> innerHTML >> since >>> > it is not a string. >>> > >>> > I tend to believe you can only get this done using (UTF-8 and HTML) >> or >>> > (ISO8859 and XML) if you use AJAX. >>> > >>> > What happens if you just popup a new window with the url: >>> > >>> > So instead of: >>> > >>> > OpenLayers.loadURL(request, '', this, setHTML); >>> > >>> > try: >>> > >>> > window.open(request); >>> > >>> > Best regards, >>> > Bart >>> > >>> > -- >>> > Bart van den Eijnden >>> > OSGIS, Open Source GIS >>> > http://www.osgis.nl >>> > >>> > >>> > --------- Oorspronkelijk bericht -------- >>> > Van: R. Ortner <[EMAIL PROTECTED]> >>> > Naar: users@openlayers.org <users@openlayers.org> >>> > Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >>> > Datum: 29/11/07 06:37 >>> > >>> >> >>> >> Heres my code for the getfeatureinfo part: >>> >> >>> >> function checkinfo(imgid,url,title){ >>> >> >>> >> if (infobox == 0) {infobox = 1;} >>> >> if (imgid == oldimgid) {infobox = 0;} >>> >> id = imgid.substring(3,imgid.length); >>> >> if(infobox == 1 &amp;&amp; >> document.getElementById(id).checked==true) { >>> >> document.getElementById('map').style.cursor = >>> 'crosshair'; >>> >> document.getElementById(imgid).src = >>> > &quot;img/treemenu/identify_2.gif&quot;; >>> >> if (oldimgid != null) >> document.getElementById(oldimgid).src = >>> >> &quot;img/treemenu/identify_1.gif&quot;; >>> >> oldimgid = imgid; >>> >> document.getElementById('nodeList').style.visibility >>> = >>> > 'visible'; >>> >> >>> >> map.events.register('click', map, function (e) { >>> >> if(infobox == 1 &amp;&amp; >> document.getElementById(id).checked==true) >>> > { >>> >> document.getElementById('map').style.cursor = >>> 'crosshair'; >>> >> OpenLayers.Util.getElement('nodeList').innerHTML = >>> > &quot;Loading... >>> >> please wait...&quot;; >>> >> var request = window[id].getFullRequestString({ >>> >> REQUEST: >> &quot;GetFeatureInfo&quot;, >>> >> EXCEPTIONS: >>> > &quot;application/vnd.ogc.se_xml&quot;, >>> >> BBOX: >> window[id].map.getExtent().toBBOX(), >>> >> X: e.xy.x, >>> >> Y: e.xy.y, >>> >> INFO_FORMAT: 'text/html', >>> >> QUERY_LAYERS: >> window[id].params.LAYERS, >>> >> WIDTH: window[id].map.size.w, >>> >> HEIGHT: window[id].map.size.h}); >>> >> OpenLayers.loadURL(request, '', this, setHTML); >>> >> OpenLayers.Event.stop(e); >>> >> } >>> >> }); >>> >> } >>> >> else { >>> >> document.getElementById('map').style.cursor = 'auto'; >>> >> document.getElementById('nodeList').style.visibility = >> 'hidden'; >>> >> if (imgid == oldimgid) { oldimgid = null; } else { >> oldimgid = >>> > imgid; >>> >> } >>> >> document.getElementById('nodeList').innerHTML = >> &quot;&quot;; >>> >> infobox = 0; >>> >> document.getElementById(imgid).src = >>> > &quot;img/treemenu/identify_1.gif&quot;; >>> >> } >>> >> } >>> >> >>> >> function setHTML(response) { >>> >> OpenLayers.Util.getElement('nodeList').innerHTML = >>> > response.responseText; >>> >> } >>> >> >>> >> >>> >> I tried to change the response.responseText to responseXML as u >> told, but >>> >> than the Info is not displayed any more. (after mouseclick i >>> see >> short >>> >> the >>> >> Loading... please wait... and than nothing!) >>> >> do i have then to change something about my template to, maybe >> with the >>> >> responseXML the template is not correct anymore? >>> >> >>> >> >>> >> ---- >>> >> >>> >> >>> >> >>> >> Bart van den Eijnden (OSGIS)-2 wrote: >>> >> &gt; >>> >> &gt; Can you explain code-wise how you perform the >> GetFeatureInfo >>> >> request? >>> >> &gt; >>> >> &gt; If the code uses responseText instead of responseXML, >>> it >> can only >>> > work in >>> >> &gt; UTF-8. >>> >> &gt; >>> >> &gt; See also some threads in september titled loading XML >> problem, e.g.: >>> >> &gt; >>> >> &gt; >> http://openlayers.org/pipermail/users/2007-September/003001.html >>> >> &gt; >>> >> &gt; Best regards, >>> >> &gt; Bart >>> >> &gt; >>> >> &gt; -- >>> >> &gt; Bart van den Eijnden >>> >> &gt; OSGIS, Open Source GIS >>> >> &gt; http://www.osgis.nl >>> >> &gt; >>> >> &gt; >>> >> &gt; --------- Oorspronkelijk bericht -------- >>> >> &gt; Van: R. Ortner >> &lt;[EMAIL PROTECTED]&gt; >>> >> &gt; Naar: users@openlayers.org >> &lt;users@openlayers.org&gt; >>> >> &gt; Onderwerp: Re: [OpenLayers-Users] ISO-8859-1 >>> >> &gt; Datum: 29/11/07 06:00 >>> >> &gt; >>> >> &gt;&gt; >>> >> &gt;&gt; Hi again, >>> >> &gt;&gt; >>> >> &gt;&gt; i tried to set the charset by adding >> &amp;lt;meta >>> >> &gt; http-equiv=&amp;quot;content-type&amp;quot; >>> >> &gt;&gt; content=&amp;quot;text/html; >> charset=ISO-8859-1&amp;quot; >>> > /&amp;gt; to the head of >>> >> &gt;&gt; the >>> >> &gt; template file >>> >> &gt;&gt; and by adding it to my OL index.php. I also >>> set >> the apache >>> > defaultCharset >>> >> &gt; to >>> >> &gt;&gt; ISO-8859-1 but i still have some special >> characters displayed >>> > wrong. >>> >> &gt;&gt; >>> >> &gt;&gt; So i gess that must be something in the >> OpenLayers Code where >>> >> the >>> > Charset >>> >> &gt; is >>> >> &gt;&gt; set &amp;quot;wrong&amp;quot;! >>> >> &gt;&gt; >>> >> &gt;&gt; If i try to open the template file (template >> file for a >>> > getFeatrueInfo >>> >> &gt;&gt; request the characters displayed correctly! >>> only >> wrong when OL >>> >> is >>> >> &gt; involved) >>> >> &gt;&gt; >>> >> &gt;&gt; hope some developer can tell me how to change >> the default >>> >> charset >>> > of OL >>> >> &gt;&gt; >>> >> &gt;&gt; thx >>> >> &gt;&gt; >>> >> &gt;&gt; ---- >>> >> &gt;&gt; >>> >> &gt;&gt; >>> >> &gt;&gt; R. Ortner wrote: >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; Hi, >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; where to tell OL to show the >> getFeatureInfo request in >>> > ISO-8859-1? >>> >> &gt;&gt; (i >>> >> &gt; need >>> >> &gt;&gt; &amp;gt; special character support) >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; so far i get as a result of my >> request for every >>> >> special >>> > character >>> >> &gt; like ? >>> >> &gt;&gt; &amp;gt; or ? -&amp;gt; ??? (FF) /? >>> (in >> IE). >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; &amp;gt; regards >>> >> &gt;&gt; &amp;gt; R. Ortner >>> >> &gt;&gt; &amp;gt; >>> >> &gt;&gt; >>> >> &gt;&gt; -- >>> >> &gt;&gt; View this message in context: >>> >> &gt; >> http://www.nabble.com/ISO-8859-1-tf4887822.html#a14021006 >>> >> &gt;&gt; Sent from the OpenLayers Users mailing list >> archive at >>> > Nabble.com. >>> >> &gt;&gt; >>> >> &gt;&gt; >>> _______________________________________________ >>> >> &gt;&gt; Users mailing list >>> >> &gt;&gt; Users@openlayers.org >>> >> &gt;&gt; http://openlayers.org/mailman/listinfo/users >>> >> &gt;&gt; >>> >> &gt; >>> >> &gt; >>> >> &gt; >>> >> &gt; _______________________________________________ >>> >> &gt; Users mailing list >>> >> &gt; Users@openlayers.org >>> >> &gt; http://openlayers.org/mailman/listinfo/users >>> >> &gt; >>> >> &gt; >>> >> >>> >> -- >>> >> View this message in context: >>> > http://www.nabble.com/ISO-8859-1-tf4887822.html#a14021264 >>> >> Sent from the OpenLayers Users mailing list archive at >> Nabble.com. >>> >> >>> >> _______________________________________________ >>> >> Users mailing list >>> >> Users@openlayers.org >>> >> http://openlayers.org/mailman/listinfo/users >>> >> >>> > >>> > >>> > >>> > _______________________________________________ >>> > Users mailing list >>> > Users@openlayers.org >>> > http://openlayers.org/mailman/listinfo/users >>> > >>> > >>> >>> -- >>> View this message in context: >> http://www.nabble.com/ISO-8859-1-tf4887822.html#a14022546 >>> Sent from the OpenLayers Users mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> Users mailing list >>> Users@openlayers.org >>> http://openlayers.org/mailman/listinfo/users >>> >> >> >> >> _______________________________________________ >> Users mailing list >> Users@openlayers.org >> http://openlayers.org/mailman/listinfo/users >> >> > > -- View this message in context: http://www.nabble.com/ISO-8859-1-tf4887822.html#a14042450 Sent from the OpenLayers Users mailing list archive at Nabble.com. ------------------------------ _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users End of Users Digest, Vol 14, Issue 70 ************************************* _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users