naquad/bencode_ext — Issue #1: Encoding problem
Author: dsmalko
Created: 2011-12-01 17:35:33+00:00
State: open

File.open("result.torrent", "w") do |f|
f.write File.open('source.torrent').read.bdecode.bencode
end

Encoding::UndefinedConversionError: "\xBB" from ASCII-8BIT to UTF-8
from (irb):19:in `write'
from (irb):19:in `block in irb_binding'
from (irb):19:in `open'
from (irb):19

Ruby version: ruby 1.9.3p0