lib/rouge/lexer.rb in rouge-1.6.2 vs lib/rouge/lexer.rb in rouge-1.7.0

- old
+ new

@@ -290,10 +290,10 @@ (@mimetypes ||= []).concat(mts) end # @private def assert_utf8!(str) - return if %w(US-ASCII UTF-8).include? str.encoding.name + return if %w(US-ASCII UTF-8 ASCII-8BIT).include? str.encoding.name raise EncodingError.new( "Bad encoding: #{str.encoding.names.join(',')}. " + "Please convert your string to UTF-8." ) end