tribler icon indicating copy to clipboard operation
tribler copied to clipboard

Unicode file names have not been saved correctly since v8.1.3.

Open gestate-8 opened this issue 5 months ago • 4 comments

In latest versions of Tribler, all unicode characters in file/directory names are replaced with ..

Example: テスト123.txt -> ...123.txt

Last version without this issue (docker image): v8.1.0-2-gca74bf6a6

gestate-8 avatar Aug 03 '25 13:08 gestate-8

That is odd. I checked out a random Japanese-looking torrent and the characters render fine for me (not sure what this torrent actually is, hopefully censored enough):

Image

This might be a browser issue. Could you check out https://www.fileformat.info/info/unicode/char/3066/browsertest.htm and see if everything displays properly? It should look like this:

Image

qstokkink avatar Aug 04 '25 08:08 qstokkink

Tribler’s UI has no issues and displays torrent info correctly. The problem occurs with directory and file names actually written to the file system.

I tested several cases and found no unicode issues outside, and Tribler v8.1.0-2-gca74bf6a6 or earlier versions don’t have this problem.

I also tried a few torrents thinking it might be a specific uploader’s fault but all characters, except English and some special characters (probably ANSI), including Japanese, Chinese, Korean, etc., get replaced with dots.

gestate-8 avatar Aug 04 '25 21:08 gestate-8

System info: Linux 6.15.8-arch1-2 #1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linux Docker version 28.3.3, build 980b856816

I checked the container logs, but there were too many INFO messages, and ERROR and WARNING messages were just tracker connection failure warnings.

gestate-8 avatar Aug 04 '25 21:08 gestate-8

The problem occurs with directory and file names actually written to the file system.

Thanks for the clarification. I misunderstood your problem then.

I think your issue is related to our inner torrent protocol library (called libtorrent), which we updated after the version that works for you. That is also the part of Tribler that actually writes files to your disk.

After a quick (technical) Google search, I can't find similar issues. So, we'll have to do a "deep dive" on this ourselves.

qstokkink avatar Aug 05 '25 07:08 qstokkink