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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/resque-1.27.4/lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.27.4 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.27.3 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.27.2 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.27.1 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.27.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resqueue-1.0.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-master-0.0.3 lib/resque/vendor/utf8_util/utf8_util_19.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/resque-1.26.0/lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.26.0 lib/resque/vendor/utf8_util/utf8_util_19.rb