Now that I think about it we may indicate that Prismedia consider the .nfo file to be UTF-8 encoded. (I did not test with other encoding but I suspect the same kind of bug.)
Fixes #12
Now that I think about it we may indicate that Prismedia consider the .nfo file to be UTF-8 encoded. (I did not test with other encoding but I suspect the same kind of bug.)
Zykino
changed title from Decode strings received from the cli arguments to [WIP] Decode strings received from the cli arguments4 years ago
Zykino
changed title from [WIP] Decode strings received from the cli arguments to Decode strings received from the cli arguments4 years ago
Zykino
changed title from Decode strings received from the cli arguments to Decode strings received from the cli arguments, fix #124 years ago
Tested on your test instance: accents from command line interface are uploaded correctly. Accents from an UTF-8 encoded file works great too.
I did not test other file encoding for the NFO. But even if I test it, it should not be Windows specific. And I did not find a way to detect the encoding of a file in Python. (Other than call a lib which will brute force the detection.)
If it's still works on linux I think you can merge it.
Tested on your test instance: accents from command line interface are uploaded correctly. Accents from an UTF-8 encoded file works great too.
I did not test other file encoding for the NFO. But even if I test it, it should not be Windows specific. And I did not find a way to detect the encoding of a file in Python. (Other than call a lib which will brute force the detection.)
If it's still works on linux I think you can merge it.
Fixes #12
Now that I think about it we may indicate that Prismedia consider the .nfo file to be UTF-8 encoded. (I did not test with other encoding but I suspect the same kind of bug.)
Decode strings received from the cli argumentsto [WIP] Decode strings received from the cli arguments 4 years ago[WIP] Decode strings received from the cli argumentsto Decode strings received from the cli arguments 4 years agoDecode strings received from the cli argumentsto Decode strings received from the cli arguments, fix #12 4 years agoTested on your test instance: accents from command line interface are uploaded correctly. Accents from an UTF-8 encoded file works great too.
I did not test other file encoding for the NFO. But even if I test it, it should not be Windows specific. And I did not find a way to detect the encoding of a file in Python. (Other than call a lib which will brute force the detection.)
If it's still works on linux I think you can merge it.
Little typo here,
decoding
:)I fixed the typo and rebased (to erase the conflit)
5907859066
.