<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR>
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; 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; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
P.first {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: first; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
LI.first {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: first; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
DIV.first {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: first; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
P.last {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: last; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
LI.last {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: last; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
DIV.last {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-name: last; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=white>
<DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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 or something like that - 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 (vith FireBug) that is being called by Geomoose, e.g. "<A
href="mhtml:{B156FF24-8D7B-4C6B-877B-D435E01A8688}mid://00000401/!x-usc:http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/home/webuser/identif.map&mapxy=468286.9195712629%20125082.02776175489&imgext=468282.0218372162%20125066.72580171067%20468308.97320987994%20125086.39975033894&layers=Boxes&imgsize=974%20711&mode=nquery">http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/home/webuser/identif.map&mapxy=468286.9195712629%20125082.02776175489&imgext=468282.0218372162%20125066.72580171067%20468308.97320987994%20125086.39975033894&layers=Boxes&imgsize=974%20711&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> </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> </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
href="mhtml:{B156FF24-8D7B-4C6B-877B-D435E01A8688}mid://00000401/!x-usc:mailto:matej@matnet.net">matej@matnet.net</A></FONT></DIV></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bfischer@houstonengineeringinc.com
href="mailto:bfischer@houstonengineeringinc.com">Fischer, Brian</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=matej@matnet.net
href="mailto:matej@matnet.net">Matej</A> ; <A
title=geomoose-users@lists.sourceforge.net
href="mailto:geomoose-users@lists.sourceforge.net">geomoose-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 03, 2008 9:48
PM</DIV>
<DIV style="FONT: 10pt arial"><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: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Matej,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I
think this would be a question for the mapserver mailing list. I have
never used international characters so I have no experience with them. 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:<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal>[DBASE item name],[DBASE item name_esc],[DBASE item
name_raw] <o:p></o:p></P>
<P class=MsoNormal
style="MARGIN-LEFT: 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">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.<o:p></o:p></P>
<P class=MsoNormal
style="MARGIN-LEFT: 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">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.<o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; 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).
Maybe it won’t do this for MapInfo files.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Just
an idea,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Brian<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Arial','sans-serif'">Brian
Fischer</SPAN><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Arial','sans-serif'">Houston
Engineering, Inc.</SPAN><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Arial','sans-serif'">Maple
Grove, MN</SPAN><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Arial','sans-serif'">(763)
493-4522</SPAN><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><o:p> </o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi,</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></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><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"> <o:p></o:p></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><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Matej
Serc</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 0.5in"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><A
href="mailto:matej@matnet.net">matej@matnet.net</A></SPAN><o:p></o:p></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>