diff --git a/lib/rchardet/universaldetector.rb b/lib/rchardet/universaldetector.rb index e540a48..4ea9d7e 100755 --- a/lib/rchardet/universaldetector.rb +++ b/lib/rchardet/universaldetector.rb @@ -60,7 +60,7 @@ def reset def feed(aBuf) # HACK: force internal encoding to be ascii-8bit (ruby 1.8 bytes) - aBuf = aBuf.force_encoding('ASCII-8BIT') + aBuf = aBuf.force_encoding('ASCII-8BIT') if aBuf.respond_to?(:force_encoding) return if @done aLen = aBuf.length