BBDown icon indicating copy to clipboard operation
BBDown copied to clipboard

英文系统下中文全部显示为问号

Open fireattack opened this issue 1 year ago • 4 comments

1. 你使用的BBDown版本是什么?(指明是Release版本还是Actions版本)

Release

2. 你在什么系统使用本软件?(Win/Linux/Mac)

Win10x64

3. 你使用的完整命令是什么?

BBDown -h

4. 遇到了什么问题?

在英文系统下运行中文字符全部显示为问号(不是字体问题)

5. 运行截图(最好开启--debug;注意自行将Cookie/Token等敏感信息隐藏)

image

fireattack avatar Jul 01 '23 04:07 fireattack

同样的问题的,LZ解决了吗?

Bengerthelorf avatar Jul 11 '23 08:07 Bengerthelorf

没有,而且最近才发现作者的另外一个项目其实也有同样的问题(不过那个有EN UI所以一直没发现)。应该不是.net的限制吧,毕竟是微软自家的东西

fireattack avatar Jul 11 '23 10:07 fireattack

切换成UTF-8试试呢?

chcp 65001
BBDown

nilaoda avatar Jul 11 '23 10:07 nilaoda

chcp 65001 确实是可以的。

我搜了下,C# 应该只需要加一句

using System.Text;

Console.OutputEncoding = Encoding.Unicode;

Encoding.UTF8Encoding.Default 似乎都可以)。 即可。可以适配任何 code page的控制台(无论chcp 1252 或者chcp 936)。

image

fireattack avatar Jul 11 '23 11:07 fireattack