dbf icon indicating copy to clipboard operation
dbf copied to clipboard

Attribute names and value are now written in UTF-8 if TextEncoder exists

Open jeff-tenhave opened this issue 8 years ago • 0 comments

Although dbf does not officially support UTF-8, it is supported by Shapefile. Right now non-ASCII characters end up getting written to the dbf as garbage values. So instead we just write them in UTF-8, if TextEncoder is found. If not, then we revert to the previous behavior. I also increased the field name length to 11 bytes (it was 8 bytes), as that is what is supported in dbf. Note: I think this PR is trying to accomplish the same thing as this one, except that it uses node Buffer. @danswick

jeff-tenhave avatar Nov 03 '17 23:11 jeff-tenhave