Created
November 1, 2018 20:07
-
-
Save wellington1993/97e1ba40f159dafd00830382de4a97e9 to your computer and use it in GitHub Desktop.
Iconv Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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