Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

汉字标签显示为“?” #27

Open
hxboxy-xh opened this issue Jun 13, 2022 · 1 comment
Open

汉字标签显示为“?” #27

hxboxy-xh opened this issue Jun 13, 2022 · 1 comment

Comments

@hxboxy-xh
Copy link

使用http://gaohr.win/site/blogs/2017/2017-04-18-GIS-basic-data-of-China.html#County_pl
上面的主要铁路shp文件,铁路名称属性NAME的时候汉字显示为问号, PINYIN显示正常

@MikesWei
Copy link
Owner

中文乱码了呗,shp等文件的编码可能是gbk,但是shpjs默认用utf8解析文本。可以通过增加与shp文件同名的cpg文件,内容为编码的名称,比如:gbk。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants