Skip to content

Instantly share code, notes, and snippets.

@mcansky
Created February 1, 2012 13:07
Show Gist options
  • Select an option

  • Save mcansky/1716910 to your computer and use it in GitHub Desktop.

Select an option

Save mcansky/1716910 to your computer and use it in GitHub Desktop.
# encoding: UTF-8
class String
def to_iso
Iconv.conv('ISO-8859-1', 'utf-8', self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment