Skip to content

Instantly share code, notes, and snippets.

@lenstr
Created March 2, 2010 16:04
Show Gist options
  • Save lenstr/319609 to your computer and use it in GitHub Desktop.
Save lenstr/319609 to your computer and use it in GitHub Desktop.
class String
alias_method(:orig_concat, :concat)
def concat(value)
orig_concat value.force_encoding(Encoding::UTF_8)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment