[mapserver-users] Encoding issues
Murty Maganti
MMaganti at oriongis.com
Fri Feb 6 09:39:56 PST 2009
Hello
I am having some issues using Arabic text as labels. I am using C# map
script. I am setting the following at runtime
labelObj label = classObj.label;
label.encoding = "CP1256";
label.text = "some text in Arabic"; (At rune time in VS, I can see the
text is actually in Arabic)
But labels are displayed as '?????'.
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.
Appreciate any help.
Thanks
Murty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090206/dcee5d39/attachment.htm>
More information about the MapServer-users
mailing list