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

Fix field parse #1

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

Conversation

easeway
Copy link

@easeway easeway commented May 2, 2013

For String fields, DBF doesn't always encodes it as UTF-8, normally plain ANSI. So remove 'utf-8' from parameter.
For Number fields, parseFloat should be used instead of parseInt.

For String fields, DBF doesn't always encodes it as UTF-8, normally plain ANSI. So remove 'utf-8' from parameter.
For Number fields, parseFloat should be used instead of parseInt.
@irandom
Copy link
Contributor

irandom commented Jun 6, 2014

It's not always ANSI too, so #7 is more preferrable, though even more brief variant is possible, https://github.com/irandom/node-dbf/commit/66ae4b338070c4615f3faa372d319d1ba4a0d13f. If I manage to add tests and if the author still maintains the package I will request a pull from my fork.

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.

2 participants