lib/maprename/content_parser.rb in maprename-0.1.1 vs lib/maprename/content_parser.rb in maprename-0.1.2

- old
+ new

@@ -27,10 +27,10 @@ debug " ContentParser context: #{context}" end def read_file_content(file) encoding = config[:encoding] || 'UTF-8' - content = IO.read(file, encoding: encoding) + content = IO.read(file, encoding: encoding).encode('UTF-8') if config[:pre_processor] IO.popen(config[:pre_processor]) do |pipe| pipe.write(content) pipe.close_write pipe.read