feat: read and write languageDirverId, add LanguageDriverIdToCodepage record#91
feat: read and write languageDirverId, add LanguageDriverIdToCodepage record#91paulish wants to merge 1 commit intoyortus:masterfrom
Conversation
|
Hi @paulish, thanks for the PR! This is interesting because there is already support for reading and writing dbf files with different character encodings, including the code pages at the link you have referenced. It's done through the Having said that, one thing you have in this PR that isn't currently implemented in this library is reading/writing the FoxPro "code page mark" / "code page id" (what you have called Language Driver ID). That would be a good way to try to get the encoding from the file itself without having to specify the I'd be interested in keeping the code to read/write the "code page mark" from files, but with the following changes from the PR as it is currently:
|
This commit allows to read languageDriverId from the header field and choose appropriate codepage to perform character conversion. I added LanguageDriverIdToCodepage record which is taken from the MS format explanation page.