Sha256: 2fa8ab7f33f87df8c4e34e59e7c73c0fd96bd2ef5be823b5c8ae5995f33aabe3
Contents?: true
Size: 401 Bytes
Versions: 14
Compression:
Stored size: 401 Bytes
Contents
module Timber module Util # @private module String UTF8 = "UTF-8".freeze # @private def self.normalize_to_utf8(string) if string.encoding.to_s == UTF8 string else string.encode('UTF-8', { :invalid => :replace, :undef => :replace, :replace => '?' }) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems