【问题标题】:How to force unzip listing to use unicode UTF-8如何强制解压缩列表使用 unicode UTF-8
【发布时间】:2021-06-09 17:38:06
【问题描述】:

邮编

zip -r --symlinks ../a.zip a a.txt 
  adding: a/šáčžřŠÁČÝŘŽÚ§/ (stored 0%)

文件名以 unicode 格式正确存储。

列表

unzip -l ../a.zip 
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  03-11-2021 14:40   a/s??a??c??z??r??S??A??C??Y??R??Z??U??§/

解压缩列表打印出糟糕的字符。

文件名以 unicode 正确存储在 zip 中,因为解压缩可以正确恢复它们,但我需要以正确的 unicode 字符显示 zip 列表。

如何以正确的 unicode 打印列表?这和shell设置有关系吗?

【问题讨论】:

  • 这不是编程问题。尝试在Super User 上提问。

标签: macos shell unicode zip unzip


【解决方案1】:

在 Ubuntu 上,您可以使用已修补的 p7zip 而不是解压缩。

【讨论】:

  • 我需要使用标准的 MacOS 工具 :-( 这将是通用发行版。
猜你喜欢
  • 2015-04-29
  • 1970-01-01
  • 1970-01-01
  • 2017-03-28
  • 1970-01-01
  • 1970-01-01
  • 2016-10-06
  • 2018-06-17
  • 1970-01-01
相关资源
最近更新 更多