Wrong symbols in torrent file #14795

Open
opened 2026-02-22 01:26:35 -05:00 by deekerman · 6 comments
Owner

Originally created by @Aleksman4o on GitHub (Jul 5, 2023).

qBittorrent & operating system versions

qBIttorent: 4.6.0beta1
OS: Linux
libtorrent-rasterbar: v1.2

What is the problem?

If some files in torrent-file have name on wrong codepage, their symbols changes to "__". So, if we have several files with same name length - their all will be merged in one file.
image
image

That's example of such torrent: https://rutracker.org/forum/viewtopic.php?t=430067

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

Originally created by @Aleksman4o on GitHub (Jul 5, 2023). ### qBittorrent & operating system versions qBIttorent: 4.6.0beta1 OS: Linux libtorrent-rasterbar: v1.2 ### What is the problem? If some files in torrent-file have name on wrong codepage, their symbols changes to "__". So, if we have several files with same name length - their all will be merged in one file. ![image](https://github.com/qbittorrent/qBittorrent/assets/16013844/511c095a-8a97-4d5e-a230-718fe250d4b9) ![image](https://github.com/qbittorrent/qBittorrent/assets/16013844/d9c901aa-1913-4d0c-b187-a8197f0e635e) That's example of such torrent: https://rutracker.org/forum/viewtopic.php?t=430067 ### Steps to reproduce _No response_ ### Additional context _No response_ ### Log(s) & preferences file(s) _No response_
Author
Owner

@glassez commented on GitHub (Jul 5, 2023):

If some files in torrent-file have name on wrong codepage

What "codepage" do you talk about? Filenames are required to be UTF-8 encoded according to BitTorrent specifications.

@glassez commented on GitHub (Jul 5, 2023): > If some files in torrent-file have name on wrong codepage What "codepage" do you talk about? Filenames are required to be UTF-8 encoded according to BitTorrent specifications.
Author
Owner

@Aleksman4o commented on GitHub (Jul 5, 2023):

i don't know, it's just assumption. So, may be when opening torrent-file this symbols should be converted to utf-8 as is? not just "__"

@Aleksman4o commented on GitHub (Jul 5, 2023): i don't know, it's just assumption. So, may be when opening torrent-file this symbols should be converted to utf-8 as is? not just "__"
Author
Owner

@stalkerok commented on GitHub (Jul 5, 2023):

This is clearly related https://github.com/qbittorrent/qBittorrent/issues/7982#issuecomment-1621008792

@stalkerok commented on GitHub (Jul 5, 2023): This is clearly related https://github.com/qbittorrent/qBittorrent/issues/7982#issuecomment-1621008792
Author
Owner

@ValeZAA commented on GitHub (Jul 12, 2023):

Hah? There is only one folder VIDEO_TS, no?

@ValeZAA commented on GitHub (Jul 12, 2023): Hah? There is only one folder VIDEO_TS, no?
Author
Owner

@stalkerok commented on GitHub (Jul 12, 2023):

No. You can open it in the client and in http://torrenteditor.com/ for example
aclands video atlas of human anatomy.torrent.txt (remove .txt)

@stalkerok commented on GitHub (Jul 12, 2023): No. You can open it in the client and in http://torrenteditor.com/ for example [aclands video atlas of human anatomy.torrent.txt](https://github.com/qbittorrent/qBittorrent/files/12028604/aclands.video.atlas.of.human.anatomy.torrent.txt) (remove .txt)
Author
Owner

@stalkerok commented on GitHub (Jul 31, 2023):

Another torrent
Karantin.torrent.txt

@stalkerok commented on GitHub (Jul 31, 2023): Another torrent [Karantin.torrent.txt](https://github.com/qbittorrent/qBittorrent/files/12221776/Karantin.torrent.txt)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#14795
No description provided.