Select to view content in your preferred language

Is posisble to create a shapefile with an specific encoding using ArcObjects?

2477
1
10-22-2015 01:52 PM
Cristian_Galindo
Frequent Contributor

I have the code to create a shapefile programmatically, something like this 28310 - Create a new empty shapefile programmatically

more over I am able to put the data from a layer in it.

It works perfectly.

Some client hands to me several layers that have data in Russian. When I export from my application to a shp file I got the same behavior described here esri - Character encoding support in geodatabases and shapefiles - Geographic Information Systems St... .

the fields with Cyrillic alphabet appears like ???????? .

I found this article: 21106 - Read and write shapefile and dBASE files encoded in various code pages  but it does not apply to ArcEngine (arcObjects) .

Is there a way to change the codification when I'm creating the shp file using the workspace provided by the shapefileworkspacefactory?

0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor

Have you considered writing your data to a personal or file geodatabase instead of a Shapefile? One of the many benefits of a GeoDatabase over a shapefile is that they support Unicode and would display Cyrillic.

0 Kudos