Extracting files with special characters #36
Labels
Bug confirmed
To define by dev that it was reproducable
Bug fixed (user confirm missing)
To define by dev that it seems fixed, but no user confirm now available
Bug fixed
To define by user or dev that related issue is finally fixed
Typ: Bug
To define by user as the related part not work, but Kodi can still be further used
Hello,
I'm using vfs.rar to download .rar subtitles files from Chinese providers.
I noticed when the archive contains chinese characters inside, the extraction (using xmbc.copy) does not work.
I'm using the below code to extract subtitles:
when the rar is downloaded, the code file = file.decode('utf-8') is changing Chinese characters to some weird characters:
subtitle.name.DD5.1.H264-FGT.Ó¢ÎÄ.srt
however, when I download the exact same file on mac and extract the content, I can get all files with correct Chinese characters:
subtitle.name.DD5.1.H264-FGT.英文.srt
Then, I compress these files on my mac in a new rar archive and provide it to my script and it's working all fine => file = file.decode('utf-8') is displaying subtitle.name.DD5.1.H264-FGT.英文.srt and i can extract all subtitles.
So I don't understand what is wrong...
In attachment, I provide the 2 rar archives (I just added .zip to be able to upload them on github):
original.rar.zip => the original rar archive downloaded from the subtitle provider
files repacked.rar.zip => the archive I created on my mac, using the files I extracted from the original archive. I did not open or modified any of these files.
files repacked.rar.zip
original.rar.zip
Thank you
The text was updated successfully, but these errors were encountered: