在mac中用unzip命令解压时出现下面错误
may:~/Desktop/SO$ unzip chain.zip
Archive: chain.zip
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/.
[ctchain对????????.zip] ctchain?Ȣ??--?/baasdemo.zip password:
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/baasdemo.zip.
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/baas㢦?-CTChain_?+-?+??+-?+?.pdf.
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/certgen-master.tar.gz.
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/certgen.tgz.
checkdir error: cannot create ctchain?Ȣ??--?
Illegal byte sequence
unable to process ctchain?Ȣ??--?/certgen.zip.
解决方案,用ditto代替
ditto -V -x -k --sequesterRsrc --rsrc ctchain对接资料.zip DESTINATIONDIRECTORY
如果文件加密,需要输入密码,带上–password参数
ditto -V -x -k --password --sequesterRsrc --rsrc ctchain对接资料.zip DESTINATIONDIRECTORY