dbf icon indicating copy to clipboard operation
dbf copied to clipboard

Encoding 69

Open SheetJSDev opened this issue 3 years ago • 1 comments

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:

  • 7d Hebrew Windows -> cp1255 or Windows-1255
  • 7e Arabic Windows -> cp1256 or Windows-1256
  • 98 Greek Macintosh -> cp1253 or Windows-1253
  • 96 Russian Macintosh -> cp1251 or Windows-1251
  • 97 CP10029 is named "MAC Latin 2 (Central European) " elsewhere -> macCentEuro

Two did not have obvious matches:

  • 69 Mazovia (Polish) MS-DOS cp620
  • 68 Kamenický (Czech) MS-DOS cp895

If there is a way to ship your own encoding, both cp620 and cp895 are single-byte. Mapping to Unicode:

SheetJSDev avatar Sep 04 '22 23:09 SheetJSDev

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,Ś╫êëτ⌡ś

SheetJSDev avatar Sep 09 '22 07:09 SheetJSDev