Skip to content

Instantly share code, notes, and snippets.

@filiptepper
Created September 29, 2010 12:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filiptepper/602663 to your computer and use it in GitHub Desktop.
Save filiptepper/602663 to your computer and use it in GitHub Desktop.
module Marshal
class << self
@@prok = Proc.new { |o| o.is_a?(String) ? Iconv.iconv("UTF-8//IGNORE", "UTF-8", o.force_encoding("UTF-8").encode("UTF-8")).first : o }
alias old_load load
def load(source)
old_load source, @@prok
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment