Sha256: 78a91868777c715685d5735c532456d598566103f74051946f82fe65a0201797
Contents?: true
Size: 217 Bytes
Versions: 10
Compression:
Stored size: 217 Bytes
Contents
module UTF8Util def self.clean!(str) return str if str.encoding.to_s == "UTF-8" str.force_encoding("binary").encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => REPLACEMENT_CHAR) end end
Version data entries
10 entries across 10 versions & 5 rubygems