Let say I have shapefiles representing streets with a column "street_Name" with the name of the streets in Greek characters. What kind of settings do I have to do to have the labels showing in the corect writing system? I have the English version of XP operating system.
Displaying labels with non latin characters
Adolfo,
By default, Map Control will show labels based on system’s current encoding. So if your System is already under Greek, it should display the Greek labels properly.
Here is how to set your system’s encoding. (Need restart after change)
Start->Control Panel ->Regional and Language Options->Advanced Tab
You can also show Greek labels even the current encoding is not Greek. You need to create Greek encoding and set it to the property featureSource.Encoding. Here I checked from the following link that the Greek is with the code page 1253, so my code can be like this.
msdn.microsoft.com/en-us/library/system.text.encoding(vs.80).aspx
ShapeFileFeatureSource featureSource = new ShapeFileFeatureSource(ShapeFile);
featureSource.Encoding = Encoding.GetEncoding(1253);
featureSource.Open();
//…
featureSource.Close();
If you still have problem, please provide us some shape file including the Greek field, which will be much helpful for us to test.
Thanks,
Ben
It worked great. Thanks, Ben.
That’s great, let us know for more queries.
Ben