How to convert non-utf8 encoding to utf-8 encoding during unzip?
3
votes
2
answers
3779
views
I have the same problem which described [here](https://superuser.com/questions/872596/decompress-zip-with-given-encoding) .
The only difference is I need to do this in MacOS.
Basically, all files are encoded in non-utf8 and zipped on Windows. When I unzip it on MacOS, they won't be readable at all. I need to convert the encoding to utf-8 during unzip.
I tried the command
unzip -O GB18030 gb18030.zip
which does not work on MacOS. I think it might because the unzip command in MacOS does not have the option -O
.
Asked by sgon00
(2526 rep)
Sep 4, 2019, 05:35 PM
Last activity: Oct 19, 2023, 07:52 AM
Last activity: Oct 19, 2023, 07:52 AM