Method: String#utf8_safe

Defined in:
lib/law_string.rb

#utf8_safeObject

Take text with potential encoding problems and aggressively make it safe for UTF-8 import.



105
106
107
# File 'lib/law_string.rb', line 105

def utf8_safe
  encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
end