Reading view

There are new articles available, click to refresh the page.

Debian, 中文文件名乱码,怎么整

kevinyuandlp:

从 Youtube 下载视频:

debian@iZj6cctjpq1994jyxsr2kaZ:~/ytb$ yt-dlp 'https://www.youtube.com/watch?v=nWmuy5Ne4rU'
[youtube] Extracting URL: https://www.youtube.com/watch?v=nWmuy5Ne4rU
[youtube] nWmuy5Ne4rU: Downloading webpage
[youtube] nWmuy5Ne4rU: Downloading ios player API JSON
[youtube] nWmuy5Ne4rU: Downloading mweb player API JSON
[youtube] nWmuy5Ne4rU: Downloading m3u8 information
[info] nWmuy5Ne4rU: Downloading 1 format(s): 135+251
[download] Destination: 02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].f135.mp4
[download] 100% of 6.33MiB in 00:00:00 at 7.00MiB/s
[download] Destination: 02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].f251.webm
[download] 100% of 2.53MiB in 00:00:00 at 3.47MiB/s
[Merger] Merging formats into "02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].mkv"
debian@iZj6cctjpq1994jyxsr2kaZ:~/ytb$ ls
'02 '$'\347\253\213\346\226\271\345\222\214\345\205\254\345\274\217\345\217\212\347\253\213\346\226\271\345\267\256\345\205\254\345\274\217'' '$'\345\205\210\344\277\256\350\252\262'' '$'\351\253\230\344\270\255\346\225\270\345\255\270'' [nWmuy5Ne4rU].mkv'
1.txt

下载完的文件名乱码

测试建一个文件,在里面输入中文,是可以正常显示
debian@iZj6cctjpq1994jyxsr2kaZ:~$ cat 1.txt
测试

locale 的相关信息如下:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

❌