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

Encoding 69 #98

Open
SheetJSDev opened this issue Sep 4, 2022 · 1 comment
Open

Encoding 69 #98

SheetJSDev opened this issue Sep 4, 2022 · 1 comment

Comments

@SheetJSDev
Copy link

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
Copy link
Author

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

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

No branches or pull requests

1 participant