lib/woodchuck/tail_reader.rb in woodchuck-json-event-0.0.1 vs lib/woodchuck/tail_reader.rb in woodchuck-json-event-0.0.2
- old
+ new
@@ -16,10 +16,10 @@
@buffer = BufferedTokenizer.new
end
def receive_data(data)
- @buffer.extract(data).each do |line|
+ @buffer.extract(data.force_encoding('utf-8')).each do |line|
@output.handle(@input_format.create(path, line))
end
end
end