Closed tario closed 11 years ago
This would fix by forcing the encoding, example:
"\xff".ord # throws ArgumentError: invalid byte sequence in UTF-8
"\xff".force_encoding("ascii-8bit").ord # returns 255 as expected
Or even better: use "binary" encoding (is an alias for the same!)
Fixed for released version 0.2.5
This code fails:
Backtrace: