When I'm trying to implement a bencoding decoder I found that pieces in metainfo of a torrent file can not be decoded as UTF-8 strings, so parser combinators can not be simply applied. I'm surprised that you simply solved this issue by using macintosh charset. However, when I'm trying to do the same thing on a macOS environment I got UnsupportedCharsetException: macintosh. Do you have any idea on this exception?
When I'm trying to implement a bencoding decoder I found that
pieces
in metainfo of a torrent file can not be decoded as UTF-8 strings, so parser combinators can not be simply applied. I'm surprised that you simply solved this issue by usingmacintosh
charset. However, when I'm trying to do the same thing on a macOS environment I gotUnsupportedCharsetException: macintosh
. Do you have any idea on this exception?