About Label

5/21/2012 6:36:56 AM
Total Posts 5

About Label

I use shapefile file with DATA Written in Arabic language, I wrote the following lines:

layer.LabelField = "NAME"
layer.ShowLabels = True
layer.LabelFont.Size = 9

To display this DATA, NAME is displayed but charachter not redable ! such as:  ÇáÓæíÏÇÁ

How can i use ASPMAP To show correctly DAtA and readable as it is written in Arabic?

Thanks

5/21/2012 6:40:53 AM
MVP
Total Posts 323

Re: About Label

Set the Layer.CharSet property to the same character set as your shapefile(.dbf).

5/21/2012 7:42:22 AM
Total Posts 5

Re: About Label

thank you for help me

I read in a ASPMAP Help file this information, I used it but I got same result without it

The settings for the Charset property are:
0 - standard Windows characters.
1 - default character set.
2 - the symbol character set.
128 - Double-byte character set (DBCS) unique to the Japanese version of Windows.
161 - Greek character set.
162 - Turkish character set.
163 - Vietnamese character set.
177 - Hebrew character set.
178 - Arabic character set.
222 - Thai character set.
238 - East Europe character set.

 

How do I read the DBF file or find out what is the encoding used? when I can find a tool for that?


Thank you for your help

5/22/2012 5:34:56 AM
MVP
Total Posts 323

Re: About Label

Set the Layer.CharSet property in the documentation (not Font.Charset which is deprecated)