calvinmetcalf / shapefile-js

Convert a Shapefile to GeoJSON. Not many caveats.
http://calvinmetcalf.github.io/shapefile-js/
715 stars 228 forks source link

What was it that changed? #149

Closed aafenlared closed 2 years ago

aafenlared commented 3 years ago

Thanks for this library. I have been trying to found this answer, but the code have changed a lot. With the version of "shp.js" used in the example "Local Zipfile" the accents are displayed correctly without using a cpg file. Meanwhile, using the newer version of "shp.js" are not displayed correctly unless the cpg file is included? My shapefile is encoded ISO-8859-1. Sorry my english. I hope you understand.

calvinmetcalf commented 2 years ago

we should be defaulting to utf8 or ascii if the cpg is omitted which is what you are passing so I'm not totally sure what the problem could be

calvinmetcalf commented 2 years ago

https://github.com/calvinmetcalf/parseDBF is where stuff might have been changed