module Ahoy::Utils
Public Class Methods
Source
# File lib/ahoy/utils.rb, line 3 def self.ensure_utf8(str) str.encode("UTF-8", "binary", invalid: :replace, undef: :replace, replace: "") if str end
# File lib/ahoy/utils.rb, line 3 def self.ensure_utf8(str) str.encode("UTF-8", "binary", invalid: :replace, undef: :replace, replace: "") if str end