Cannot open .torrent files with CJK characters in filename #122

Closed
opened 2026-02-21 14:53:16 -05:00 by deekerman · 4 comments
Owner

Originally created by @benmullins on GitHub (Oct 2, 2012).

Originally assigned to: @sledgehammer999 on GitHub.

When attempting to start a torrent with a .torrent file whose filename contains CJK characters (and possibly other international characters), qBittorrent throws an error saying "I/O Error: The torrent file does not exist.". CJK characters in the names of the torrents themselves and the files within the torrent work fine, it's just the initial opening of a .torrent file that fails.

This issue is happening on Windows with v3.0.5.

Originally created by @benmullins on GitHub (Oct 2, 2012). Originally assigned to: @sledgehammer999 on GitHub. When attempting to start a torrent with a .torrent file whose filename contains CJK characters (and possibly other international characters), qBittorrent throws an error saying "I/O Error: The torrent file does not exist.". CJK characters in the names of the torrents themselves and the files within the torrent work fine, it's just the initial opening of a .torrent file that fails. This issue is happening on Windows with v3.0.5.
deekerman 2026-02-21 14:53:16 -05:00
Author
Owner

@cdumez commented on GitHub (Oct 3, 2012):

Could we get such a torrent to debug?

Also, this is likely specific to Windows.

@cdumez commented on GitHub (Oct 3, 2012): Could we get such a torrent to debug? Also, this is likely specific to Windows.
Author
Owner

@sledgehammer999 commented on GitHub (Oct 3, 2012):

Is this related, by any chance, to this? -> https://github.com/qbittorrent/qBittorrent/issues/135

@sledgehammer999 commented on GitHub (Oct 3, 2012): Is this related, by any chance, to this? -> https://github.com/qbittorrent/qBittorrent/issues/135
Author
Owner

@benmullins commented on GitHub (Oct 3, 2012):

It's not specific to any particular torrent, so you can trigger the issue by renaming a torrent (my work-around for the problem is renaming the torrents that won't open to random strings of Latin characters). Try copy-pasting this: ファイル

Also, I just saw that if you attempt to open such a torrent by double-clicking on it while qBittorrent is not running, qBittorrent will start and correctly open the torrent, but if you try again after the program is already running, it no longer works.

As for being related to that other bug, I don't know. I only ever see the issue when I try to open files with CJK filenames, not every time the program is launched.

@benmullins commented on GitHub (Oct 3, 2012): It's not specific to any particular torrent, so you can trigger the issue by renaming a torrent (my work-around for the problem is renaming the torrents that won't open to random strings of Latin characters). Try copy-pasting this: ファイル Also, I just saw that if you attempt to open such a torrent by double-clicking on it while qBittorrent is not running, qBittorrent will start and correctly open the torrent, but if you try again after the program is already running, it no longer works. As for being related to that other bug, I don't know. I only ever see the issue when I try to open files with CJK filenames, not every time the program is launched.
Author
Owner

@sledgehammer999 commented on GitHub (Oct 3, 2012):

"but if you try again after the program is already running, it no longer works."

This is useful. I can reproduce on Windows XP. I am not sure if this is a compilation problem or qbittorrent's/qt's problem. I'll try to investigate more but it will probably take a while(a few days) because I am busy with real life...

@sledgehammer999 commented on GitHub (Oct 3, 2012): "but if you try again after the program is already running, it no longer works." This is useful. I can reproduce on Windows XP. I am not sure if this is a compilation problem or qbittorrent's/qt's problem. I'll try to investigate more but it will probably take a while(a few days) because I am busy with real life...
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#122
No description provided.