[Windows] 7-Zip解壓縮簡中檔名為亂碼

 解決7zip解壓縮亂碼問題。

  1. 下載7zip(這步就省略了。https://www.7-zip.org/download.html)
  2. 設定7zip環境變數(詳見下圖):




    C:\Program Files\7-Zip

  3. cmd cd到指定的目錄,輸入以下指令:

    7z x 您的檔案.zip -mcp=936
    

    參數:
    x => 代表解壓縮
    您的檔案.zip => 檔名
    -mcp=936 => 指定編碼為簡中

    --簡中 936
    --日文 932
    --編碼可以參考: https://www.wikiwand.com/en/Code_page#/DOS_code_pages



參考:

  1. https://tech.gjlmotea.com/2021/07/windows7-zip.html
  2. https://blog.csdn.net/u010348546/article/details/124087985

留言

這個網誌中的熱門文章

[C#] 無法載入檔案或組件 或其相依性的其中之一。 找到的組件資訊清單定義與組件參考不符。 (發生例外狀況於 HRESULT: 0x80131040)

[Cloud CICD] 後端篇 - .Net8 WebApi, Github Action, Azure App Service

[Cloud CICD] 前端篇 - Vue3, Github Action, Azure Static Web App