Skip to content

Add support for DBF file encoding #139

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mloenow
Copy link

@mloenow mloenow commented Jan 21, 2022

Awesome extension — thanks for making it!

I had issues with some Scandinavian characters, which can be fixed by including the encoding as the second argument in the DBF parser. According to the spec[0] a .cpg file can specify the encoding, so this pull request adds support for that.

[0] Well, Wikipedia (see Other files), as well as shapefile-js and parseDBF.

@RandomFractals
Copy link
Owner

Interesting scenario. Do you have data files I could test it with?

Thanks for the PR. I only noticed it now.

@mloenow
Copy link
Author

mloenow commented Dec 5, 2022

I'm unsure if it can be shared publicly. Do you have an email or similar I can send it to?

@ts-ldash
Copy link

Nice improvement @mloenow - can probably share publicly a small subset of your confidential data or make a synthetic example with Scandinavian characters.

@RandomFractals approve to merge?

@mloenow
Copy link
Author

mloenow commented Mar 25, 2025

@ts-ldash I don't have access to the data anymore, sorry. I still believe the change is correct. Some of the dependencies might have changed since, though.

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

Successfully merging this pull request may close these issues.

3 participants