Skip to content

Commit

Permalink
filename must be UTF-8 encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Dec 4, 2024
1 parent 993e71c commit fb9f197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mb/mb/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def calc_btih(self):
b"4:name",
str(len(self.basename)).encode("ASCII"),
b":",
str(self.basename).encode("ASCII"),
str(self.basename).encode("UTF-8"),
b"12:piece length",
b"i",
str(self.chunk_size).encode("ASCII"),
Expand Down

0 comments on commit fb9f197

Please sign in to comment.