0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

普通に開くと文字化けするzipを解凍する(unar -e Shift-JIS aru.zip)

Posted at

概要

配布されたzipが、普通にダブルクリックで開くとファイル名が文字化けしてしまった。

環境

Mac Montery 12.6.2
zip作成環境:不明

したこと

unar を活用することにした。

unarのインストール

brew install unar

unarの実行

おそらくshift-jisだろうと思ってまずはそれでチャレンジ

unar -e Shift-JIS haihu.zip

すると、日本語ファイル名がきれいに解凍された。

蛇足

なお、haihu.zipを解凍したところ、今度はnakami.zipが出てきた。
なので、unar -e Shift-JIS nakami.zipを再度実行してうまく解凍できた。
(二重にzipされていたからうまく解凍できなかった側面もあるのか?)

結語

なんとかなってよかった

https://github.com/ashang/unar
https://theunarchiver.com/command-line

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?