Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Created November 1, 2018 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellington1993/97e1ba40f159dafd00830382de4a97e9 to your computer and use it in GitHub Desktop.
Save wellington1993/97e1ba40f159dafd00830382de4a97e9 to your computer and use it in GitHub Desktop.
Iconv Rails
-iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE', client)
+iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE//TRANSLIT//IGNORE', client)
-iconv = @@iconvs[key] ||= Iconv.new('UTF-8', client)
+iconv = @@iconvs[key] ||= Iconv.new('UTF-8//TRANSLIT//IGNORE', client)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment