Hi,<br><br>You might want to try with encoding=&quot;ISO-8859-6&quot; assuming you have libiconv compiled in.<br>The c# mapscript doesn&#39;t specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><br><br><div class="gmail_quote">2009/2/6 Murty Maganti <span dir="ltr">&lt;<a href="mailto:MMaganti@oriongis.com">MMaganti@oriongis.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p>Hello </p>

<p>&nbsp;</p>

<p>I am having some issues using Arabic text as labels. I am
using C# map script. I am setting the following at runtime</p>

<p>&nbsp;</p>

<p>labelObj label = classObj.label;</p>

<p>label.encoding = "CP1256";</p>

<p>label.text = "some text in Arabic"; (At rune
time in VS, I can see the text is actually in Arabic)</p>

<p>&nbsp;</p>

<p>But labels are displayed as '?????'.</p>

<p>&nbsp;</p>

<p>&nbsp;Is there any conversion I need to do before setting
the text value. How are the string represented in the underlying mapscript dll
(ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses
LPStr which is a single byte of ASCII. Does it mean that first I need to
convert from Unicode to ASCII in C# before setting the value.</p>

<p>&nbsp;</p>

<p>Appreciate any help.</p>

<p>&nbsp;</p>

<p>Thanks</p>

<p>Murty</p>

<p>&nbsp;</p>

</div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>