This should not happen, but just in case, we currently assume every torrent has valid UTF-8 filenames.
We should document/test whatever happens when that's not the case. The Bittorrent spec is very explicit that apart from binary pieces, everything must be UTF-8, so maybe we fail upstream in hightorrent/bencode already?
This should not happen, but just in case, we currently assume every torrent has valid UTF-8 filenames.
We should document/test whatever happens when that's not the case. The Bittorrent spec is very explicit that apart from binary pieces, everything must be UTF-8, so maybe we fail upstream in hightorrent/bencode already?