Class: OneApm::JSONWrapper::IconvNormalizer
- Inherits:
-
Object
- Object
- OneApm::JSONWrapper::IconvNormalizer
- Defined in:
- lib/one_apm/support/json_wrapper.rb
Class Method Summary collapse
Class Method Details
.normalize(s) ⇒ Object
89 90 91 92 93 94 95 |
# File 'lib/one_apm/support/json_wrapper.rb', line 89 def self.normalize(s) if @iconv.nil? require 'iconv' @iconv = Iconv.new('utf-8', 'iso-8859-1') end @iconv.iconv(s) end |