<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>(Further "Shot in the Dark")<br><br>Okay, I would think about doing the following...<br>1) Remove the Doctype<br>2) Remove the meta http-equiv tag.<br><br>Clear cache, reload, see what happens.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Matej &lt;matej@matnet.net&gt;<br><b><span style="font-weight: bold;">To:</span></b> Dan Little &lt;danlittle@yahoo.com&gt;; geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, November 4, 2008 9:45:03 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Geomoose-users] Special characters -
 "sh", "ch", "zh" - Central European symbols - part 2<br></font><br>


 
<style type="text/css">DIV {
MARGIN:0px;}
</style>


<div><font face="Arial" size="2">Yes, no matter what encoding is set in index.html 
the output in the GeoMoose in the div "content_results_form" is always the same 
- same strange characters (for example the char after "o" in this string<font face="Times New Roman" size="3"><font face="Arial" size="2">: "Naro�nik".</font> <font face="Arial" size="2">There is supposed to be the symbol for 
"ch".).</font></font></font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Matej Serc</font></div>
<div><font face="Arial" size="2"><a rel="nofollow" ymailto="mailto:matej@matnet.net" target="_blank" href="mailto:matej@matnet.net">matej@matnet.net</a></font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>From:</b> 
  <a rel="nofollow" title="danlittle@yahoo.com" ymailto="mailto:danlittle@yahoo.com" target="_blank" href="mailto:danlittle@yahoo.com">Dan Little</a> 
  </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>To:</b> <a rel="nofollow" title="matej@matnet.net" ymailto="mailto:matej@matnet.net" target="_blank" href="mailto:matej@matnet.net">Matej</a> ; <a rel="nofollow" title="geomoose-users@lists.sourceforge.net" ymailto="mailto:geomoose-users@lists.sourceforge.net" target="_blank" href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</a> 
  </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Sent:</b> Tuesday, November 04, 2008 4:31 
  PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Subject:</b> Re: [Geomoose-users] Special 
  characters - "sh", "ch", "zh" - Central European symbols - part 2</div>
  <div><br></div>
  <div style="font-size: 10pt; font-family: arial,helvetica,sans-serif;">
  <div>Have you tried changing the encoding settings in the index.html 
  file?<br></div>
  <div style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"><br>
  <div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><font face="Tahoma" size="2">
  <hr size="1">
  <b><span style="font-weight: bold;">From:</span></b> Matej &lt;<a rel="nofollow" ymailto="mailto:matej@matnet.net" target="_blank" href="mailto:matej@matnet.net">matej@matnet.net</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:geomoose-users@lists.sourceforge.net" target="_blank" href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</a><br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, November 4, 2008 9:17:31 
  AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: 
  [Geomoose-users] Special characters - "sh", "ch", "zh" - Central European 
  symbols - part 2<br></font><br>
  <style>_filtered {
font-family:Calibri;}
_filtered {
font-family:Tahoma;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman", "serif";}
A:link {
COLOR:blue;TEXT-DECORATION:underline;}
SPAN.MsoHyperlink {
COLOR:blue;TEXT-DECORATION:underline;}
A:visited {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.MsoHyperlinkFollowed {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.EmailStyle17 {
COLOR:#1f497d;FONT-FAMILY:"Calibri", "sans-serif";}
P.first {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
LI.first {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
DIV.first {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
P.last {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
LI.last {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
DIV.last {
FONT-SIZE:12pt;MARGIN-LEFT:0in;MARGIN-RIGHT:0in;FONT-FAMILY:"Times New Roman", "serif";}
.MsoChpDefault {
FONT-SIZE:10pt;}
DIV.Section1 {
}
</style>

  <div>
  <div><font face="Arial" size="2">Hi,</font></div>
  <div><font face="Arial" size="2"></font>&nbsp;</div>
  <div><font face="Arial" size="2">I was looking at MapScript which would be an 
  option, but due to the following fact I think that there must be an "easier" 
  solution maybe with some XML settings&nbsp;or something like that&nbsp;- when 
  I click on the "Identify" tool and the result is open in the div 
  "content_results_form" as a part of the GeoMoose window, the characters DO NOT 
  appear correctly. But when I get the direct link to the MapServer 
  call&nbsp;(vith FireBug) that is being called by Geomoose, e.g. "<a rel="nofollow">http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/home/webuser/identif.map&amp;mapxy=468286.9195712629%20125082.02776175489&amp;imgext=468282.0218372162%20125066.72580171067%20468308.97320987994%20125086.39975033894&amp;layers=Boxes&amp;imgsize=974%20711&amp;mode=nquery</a>" 
  in a separated window or a tab, those characters DO appear correctly. And also 
  when I set the charset of that window when the data is appearing correctly the 
  same charset as the GeoMoose window has, they look as they 
should.</font></div>
  <div><font face="Arial" size="2"></font>&nbsp;</div>
  <div><font face="Arial" size="2">That is the fact that is bothering me and I 
  suspect that some method which performs the "call" of the Mapserver from 
  GeoMoose isn't capable of getting data differently than in utf-8, but it 
  proves that MapServer is returning the data in the iso-8859.2 charset 
  correctly.</font></div>
  <div><font face="Arial" size="2"></font>&nbsp;</div>
  <div><font face="Arial" size="2">Thank you in advance,</font></div>
  <div><font face="Arial" size="2">Matej Serc</font></div>
  <div><font face="Arial" size="2"><a rel="nofollow">matej@matnet.net</a></font></div></div>
  <blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; -x-system-font: none; font-size-adjust: none; font-stretch: normal;">----- 
    Original Message ----- </div>
    <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; -x-system-font: none; font-size-adjust: none; font-stretch: normal;"><b>From:</b> 
    <a rel="nofollow" title="bfischer@houstonengineeringinc.com" ymailto="mailto:bfischer@houstonengineeringinc.com" target="_blank" href="mailto:bfischer@houstonengineeringinc.com">Fischer, Brian</a> 
</div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; -x-system-font: none; font-size-adjust: none; font-stretch: normal;"><b>To:</b> 
    <a rel="nofollow" title="matej@matnet.net" ymailto="mailto:matej@matnet.net" target="_blank" href="mailto:matej@matnet.net">Matej</a> ; <a rel="nofollow" title="geomoose-users@lists.sourceforge.net" ymailto="mailto:geomoose-users@lists.sourceforge.net" target="_blank" href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</a> 
    </div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; -x-system-font: none; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> 
    Monday, November 03, 2008 9:48 PM</div>
    <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; -x-system-font: none; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> 
    RE: [Geomoose-users] Special characters - "sh", "ch","zh" - Central European 
    symbols - part 2</div>
    <div><br></div>
    <div class="Section1">
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Matej,</span></p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">I 
    think this would be a question for the mapserver mailing list.&nbsp; I have 
    never used international characters so I have no experience with them.&nbsp; 
    I wonder if it is an issue with the MapInfo format. I do know mapserver 
    encodes the attributes for HTML, but will leave them as is if you do 
    something like this:</span></p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
    <p class="MsoNormal">[DBASE item name],[DBASE item name_esc],[DBASE item 
    name_raw] </p>
    <p class="MsoNormal" style="margin-left: 0.5in;">Item name from the attribute 
    table of a queried layer. Only attributes for the active query layers are 
    accessible. Case must be the same as what is stored in the DBASE file. 
    ArcView, for example, uses all caps for shapefile field names. Available 
    only when processing query results.</p>
    <p class="MsoNormal" style="margin-left: 0.5in;">By default the attributes are 
    encoded especially for HTML representation. In addition the escaped version 
    (for use in URLs) as well as the raw data is available.</p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">This 
    is from the mapserver website under the template reference guide 
    (http://mapserver.gis.umn.edu/docs/reference/templatereference/referencemanual-all-pages).&nbsp; 
    Maybe it wonʼt do this for MapInfo files.</span></p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Just 
    an idea,</span></p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Brian</span></p>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
    <div>
    <p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: 'Arial','sans-serif';">Brian 
    Fischer</span><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span></p>
    <p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: 'Arial','sans-serif';">Houston 
    Engineering, Inc.</span><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span></p>
    <p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: 'Arial','sans-serif';">Maple 
    Grove, MN</span><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span></p>
    <p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125); font-family: 'Arial','sans-serif';">(763) 
    493-4522</span><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span></p></div>
    <p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span>&nbsp;</p>
    <div>
    <div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
    <p class="MsoNormal" style="margin-left: 0.5in;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"> Matej 
    [mailto:matej@matnet.net] <br><b>Sent:</b> Monday, November 03, 2008 2:36 
    PM<br><b>To:</b> geomoose-users@lists.sourceforge.net<br><b>Subject:</b> 
    [Geomoose-users] Special characters - "sh", "ch","zh" - Central European 
    symbols - part 2</span></p></div></div>
    <p class="MsoNormal" style="margin-left: 0.5in;">&nbsp;</p>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Hi,</span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;">&nbsp;</p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">I have been 
    further investigating this issue and I am out of ideas what to do. Let me 
    explain more. I have data with those symbols in a MapInfo (.TAB file has the 
    entry !charset WindowsLatin2 for charset definition). As I mentioned before, 
    MapServer returns correct data and when I open it in the different browser 
    everything is displayed as it should be.</span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">But when the 
    results are open in the div inside geomoose, it is always (and I mean 
    always) displayed in utf-8 encoding. I have found out that it is typical 
    behaveour for setRequestHeader to always return data in utf-8. I tried 
    adding "charset=iso-8859-2" to those two setRequestHeader calls, but I get 
    no different results. </span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Now I don't know 
    if I should also write on the MapServer's mailing list if there is a chance 
    to convert the data from mode=nquery to specified encoding since I think 
    that I MUST get the results of the query in utf-8 from Mapserver otherwise 
    this won't work. But searching around, there is no option for that. 
    </span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;">&nbsp;</p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Maybe there is a 
    way of replacement some characters before displaying them? </span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;">&nbsp;</p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Thank you for any 
    help in advance,</span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Matej 
    Serc</span></p></div>
    <div>
    <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';"><a rel="nofollow" ymailto="mailto:matej@matnet.net" target="_blank" href="mailto:matej@matnet.net">matej@matnet.net</a></span></p></div></div></blockquote></div></div></div><br></blockquote></div></div></div><br>

      </body></html>