Sha256: 554b9fd0b8186e1305d9f57a6613f42fe0423fcb21524db002110c8fa4378847
Contents?: true
Size: 380 Bytes
Versions: 77
Compression:
Stored size: 380 Bytes
Contents
require 'iconv' module Rollbar module Encoding class LegacyEncoder attr_accessor :object def initialize(object) @object = object end def encode value = object.to_s encoded_value = ::Iconv.conv('UTF-8//IGNORE', 'UTF-8', value) object.is_a?(Symbol) ? encoded_value.to_sym : encoded_value end end end end
Version data entries
77 entries across 77 versions & 1 rubygems