Sha256: 573a3af612362249e124ffe420b5a857edc5abba330df9314b5ac4a946cbb577

Contents?: true

Size: 170 Bytes

Versions: 13

Compression:

Stored size: 170 Bytes

Contents

module UTF8Util
  def self.clean!(str)
    str.force_encoding("binary").encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => REPLACEMENT_CHAR)
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
resque_sqs-1.25.2 lib/resque_sqs/vendor/utf8_util/utf8_util_19.rb
resque-1.25.2 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.26.pre.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque_signal_from_child-1.25.1 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.25.1 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.25.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.25.0.pre lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.24.1 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.24.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.23.1 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.23.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.22.0 lib/resque/vendor/utf8_util/utf8_util_19.rb
resque-1.21.0 lib/resque/vendor/utf8_util/utf8_util_19.rb