Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Bogus Japanese zipfiles [was: Kudos to Jim Breen]



Quickly on the note of shift-jis, another place I still see this is the default encoding of .csv files from financial companies. I emailed them one to find out why they do that, but as yet no response.

Grb



On 26 June 2018 20:13:09 GMT+09:00, Jim Breen <jimbreen@example.com> wrote:
On 26 June 2018 at 20:10, Kalin KOZHUHAROV <me.kalin@example.com> wrote:
On Tue, Jun 26, 2018 at 5:05 AM, Stephen J. Turnbull
<turnbull.stephen.fw@example.com> wrote:
I still occasionally get zip files with Shift JIS-encoded file names.

LoL, after many years of occasional need to wrestle those, I published this:

https://github.com/thinrope/gentoo-nifty-scripts/blob/master/usr/local/bin/jzip

(although it is somewhat Gentoo-related (paths), the script is mostly
standalone)

I forget the exact syntax, but something like

python -m zipfile --extract --filenameencoding=shift_jis bogus.zip

I think patching upstream (zip, p7zip) is still better, but haven't
had urge to do it.

One day someone will publish a list of the evil things we can blame
on Microsoft, and close to the top of the list will be inflicting us with
Shi[f]t-JIS.

Jim

---
"Don't use bold, it wastes electricity"
Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links