dbf
dbf copied to clipboard
Encoding 69
VFP claims to support the following codepages: https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/aa975345(v=vs.71)
Testing against ruby 2.6.8p205, some of these have obvious entries in Encoding.name_list:
-
7dHebrew Windows ->cp1255orWindows-1255 -
7eArabic Windows ->cp1256orWindows-1256 -
98Greek Macintosh ->cp1253orWindows-1253 -
96Russian Macintosh ->cp1251orWindows-1251 -
97CP10029 is named "MAC Latin 2 (Central European) " elsewhere ->macCentEuro
Two did not have obvious matches:
-
69Mazovia (Polish) MS-DOScp620 -
68Kamenický (Czech) MS-DOScp895
If there is a way to ship your own encoding, both cp620 and cp895 are single-byte. Mapping to Unicode:
Example: mazovia.dbf.zip (Remove the .zip extension)
Current result:
% dbf -c mazovia.dbf.zip
"A1","A2"
"2020-01-04","English"
"2020-01-04","?????"
Expected:
% npx xlsx-cli mazovia.dbf.zip
Sheet1
A1,A2
2020-01-04,English
2020-01-04,Ś╫êëτ⌡ś