NanaZip icon indicating copy to clipboard operation
NanaZip copied to clipboard

命令行乱码问题 Garbled text on cli-interface

Open ShimmeringLight opened this issue 3 years ago • 2 comments

使用Windows Terminal 上的Powershell运行nanazipc压缩文件名带有中文的文件时,标准输出出现乱码,压缩文件内文件名正常。

Stdout is garbled when using nanazipc to add files which filename contains Chinsese,while the zip archive works normal.

WT%C5}P34}DKP}J6~52)4UT

ShimmeringLight avatar Dec 09 '21 05:12 ShimmeringLight

未能在设备上复现该问题,希望提供更多信息。

设备信息: Windows 11 22000.348; (Windows 功能体验包 1000.22000.348.0);zh-CN;

image

image

image

SakuraNeko avatar Dec 09 '21 09:12 SakuraNeko

There is a switch that can control charset for console output.

-scc{UTF-8|WIN|DOS} : set charset for for console input/output

My terminal uses UTF-8 as its charset, so adding -sccUTF-8 works for me.

FlandiaYingman avatar Jul 04 '23 00:07 FlandiaYingman