GDAL/OGR创建要素类中文乱码问题

以下为java代码,c++/python的原理类似,不列出

1. 目录乱码

gdal.SetConfigOption("GDAL_FILENAME_IS_UTF8","YES");

具体是”YES”还是”NO”视情况而定

 

2. 属性乱码

gdal.SetConfigOption("SHAPE_ENCODING","GBK");

具体是”GBK”、””还是”UTF8″(“UTF-8”?)同样是视情况而定

转载自:https://blog.csdn.net/cccp333/article/details/32103253

You may also like...