摘要
针对较为频繁发生的Shape文件中文字段乱码问题,首先系统性地研究了Shape文件组成结构、中文字符编码类型,分析了出现中文字段乱码的原因,然后列举利用现有软件解决中文乱码的几种方法,并探讨了现有方法的局限性,最后应用C#程序设计语言和开源开发包DotNetDBF开发了一个Shape文件中文乱码纠正工具。工具能识别多种不同的中文字符编码,能批量对Shape文件的乱码进行修复,可以在不同的编码之间进行转换。经验证表明:开发完成的中文乱码纠正工具可以解决Shape文件存在的大多数中文字段乱码转换问题,能满足行业应用的需求。
In view of the frequent occurrence of Chinese field scrambling in Shape files,the structure of Shape files and the type of Chinese character encoding are firstly systematically studied;the reasons for the occurrence of Chinese field scrambling are analyzed;several methods are listed to solve Chinese field scrambling using existing software,and the limitations of existing methods are discussed.Finally,a tool is developed to parse Chinese garbled code in Shape files by using C#programming language and open source development package DotNetDBF.The conversion tool can recognize a variety of different Chinese character codes,repair the garbled code of Shape files in batches,and convert between different codes.The verification shows that the tool can solve the problem of most Chinese field garbled conversion in Shape files and meet the needs of industrial applications.
作者
付晓燕
蒋之富
罗春林
Fu Xiaoyan;Jiang Zhifu;Luo Chunlin(Southwest Forestry University,Kunming,Yunnan 650224,China;Kunming Survey&Design Institute of State Forestry Administration,Kunming,Yunnan 650216,China)
出处
《绿色科技》
2023年第8期276-280,共5页
Journal of Green Science and Technology