<html 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" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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 link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>&gt;The iconv.dll and fribidi.dll should be available to
load by the application by default. <br>
&gt;Does this issue exists only when fribidi is compiled in? I can see a couple
of non-const static variables used by the fribidi library and I wonder if we
should &gt;protect the access to these functions with locks inside the
mapserver code in a multi-threaded&nbsp; environment.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I have the both DLLs present in PATH/binary folders. Though I
see SUPPORT=FRIBIDI output from map server, but I guess it is going through
iconv. When a specify wrong encoding like &#8216;abc&#8217; it throws exception
that the encoding is not supported by iconv, which means it is using iconv.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Forgot to mention this previously. There is no problem
loading the map file (with encoding) in a desktop application on Vista. It hangs
when I load in ASP.Net environment. But same map file loads fine in ASP.Net on
XP machine.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Appreciate all the help.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks<o:p></o:p></p>

<p class=MsoNormal>Murty<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tamas Szekeres
[mailto:szekerest@gmail.com] <br>
<b>Sent:</b> Wednesday, March 11, 2009 6:28 PM<br>
<b>To:</b> Murty Maganti<br>
<b>Cc:</b> Daniel Morissette; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] Label encoding<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>2009/3/11 Murty Maganti &lt;<a
href="mailto:MMaganti@oriongis.com">MMaganti@oriongis.com</a>&gt;<o:p></o:p></p>

<p class=MsoNormal>Hi<br>
<br>
Is that list same if map server is compiled with Fribidi or is it<br>
different?<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
<br>
Hi,<br>
<br>
<br>
I can see the followings added in fribidi (according to
fribidi-char-sets-list.h)<br>
<br>
#ifdef _FRIBIDI_ADD_CHAR_SET_OTHERS<br>
_FRIBIDI_ADD_CHAR_SET_OTHERS (UTF8, utf8)&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
/* UTF-8 (Unicode) */<br>
_FRIBIDI_ADD_CHAR_SET_OTHERS (CAP_RTL, cap_rtl)&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; /* CapRTL (Test) */<br>
#endif /* _FRIBIDI_ADD_CHAR_SET_OTHERS */<br>
#ifdef _FRIBIDI_ADD_CHAR_SET_ONE2ONE<br>
_FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_6, iso8859_6)&nbsp;&nbsp;&nbsp; /*
ISO8859-6 (Arabic) */<br>
_FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_8, iso8859_8)&nbsp;&nbsp;&nbsp; /*
ISO8859-8 (Hebrew) */<br>
_FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1255, cp1255)&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; /* CP1255 (MS Hebrew/Yiddish) */<br>
_FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1256, cp1256)&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; /* CP1256 (MS Arabic) */<br>
#endif /* _FRIBIDI_ADD_CHAR_SET_ONE2ONE */<br>
<br>
&nbsp;<br>
As far as I can see this takes precedence over iconv when fribidi is compiled
in, unless you specify FRIBIDI_NO_CHARSETS when compiling mapserver. In the
latter case iconv is used to when doing the encoding.<br>
<br>
<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><br>
Also, have another issue. I have a map file that loads perfectly fine on<br>
XP and vista. The moment I add encoding attribute, it does not load in<br>
vista (no matter what the coding value). It just hangs in mapObj.draw()<br>
and need to restart IIS. Works fine on XP. Is there any clue where I can<br>
look to resolve the issue. Do I need to install any additional libraries<br>
for Iconv or Fribidi on Vista?<o:p></o:p></p>

</blockquote>

<div>

<p class=MsoNormal><br>
The iconv.dll and fribidi.dll should be available to load by the application by
default. <br>
Does this issue exists only when fribidi is compiled in? I can see a couple of
non-const static variables used by the fribidi library and I wonder if we
should protect the access to these functions with locks inside the mapserver
code in a multi-threaded&nbsp; environment.<br>
<br>
Best regards,<br>
<br>
Tamas<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>