C# DotSpatial-如何在dbf文件中正确保存土耳其符号(如';ə;';';ü;';等)?(或如何在保存形状文件时更改编码)

C# DotSpatial-如何在dbf文件中正确保存土耳其符号(如';ə;';';ü;';等)?(或如何在保存形状文件时更改编码),c#,encoding,utf-8,arcgis,dotspatial,C#,Encoding,Utf 8,Arcgis,Dotspatial,我需要添加土耳其符号的形状文件。但是我不能在保存形状文件的过程中更改编码。下面是我的代码片段: FeatureSet fs = new FeatureSet(FeatureType.Polygon); ProjectionInfo pStart = new ProjectionInfo(); pStart = KnownCoordinateSystems.Geographic.World.WGS1984; fs.Projection = pStart; fs.DataTable.Colum

我需要添加土耳其符号的形状文件。但是我不能在保存形状文件的过程中更改编码。下面是我的代码片段:

FeatureSet fs = new FeatureSet(FeatureType.Polygon);

ProjectionInfo pStart = new ProjectionInfo();
pStart = KnownCoordinateSystems.Geographic.World.WGS1984;
fs.Projection = pStart;  
fs.DataTable.Columns.Add(new DataColumn("Sahə", typeof(string))); 

// create a geometry (square polygon)
List<Coordinate> vertices = new List<Coordinate>();

vertices.Add(new Coordinate(50.060444958508015, 40.55967497639358));
vertices.Add(new Coordinate(50.061042001470923, 40.554836019873619));
vertices.Add(new Coordinate(50.056969989091158, 40.554629992693663));
vertices.Add(new Coordinate(50.055287992581725, 40.559944035485387));
vertices.Add(new Coordinate(50.060444958508015, 40.55967497639358));

Polygon geom = new Polygon(vertices);

// add the geometry to the featureset. 
IFeature feature = fs.AddFeature(geom);

feature.DataRow.BeginEdit();
feature.DataRow["Sahə"] = "Əüei.."; 
feature.DataRow.EndEdit();


fs.SaveAs("C:\\test2.shp", true);
FeatureSet fs=新的FeatureSet(FeatureType.Polygon);
ProjectionInfo pStart=新建ProjectionInfo();
pStart=known坐标系.Geographic.World.WGS1984;
fs.投影=pStart;
Add(新数据列(“Sahə”,typeof(string));
//创建几何图形(方形多边形)
列表顶点=新列表();
添加(新坐标(50.060444958508015,40.55967497639358));
添加(新坐标(50.061042001470923,40.554836019873619));
添加(新坐标(50.0569989091158,40.5546299926963663));
添加(新坐标(50.055287992581725,40.559944035485387));
添加(新坐标(50.060444958508015,40.55967497639358));
多边形几何=新多边形(顶点);
//将几何图形添加到特征集。
IFeature feature=fs.AddFeature(geom);
feature.DataRow.BeginEdit();
feature.DataRow[“Sahə”]=“Əüei..”;
feature.DataRow.EndEdit();
fs.SaveAs(“C:\\test2.shp”,true);
在test2.dbf文件中,一些符号(ə,ü)保存为“?”符号