Skip to content

Instantly share code, notes, and snippets.

@dehora
Created October 24, 2013 12:23
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 dehora/7136257 to your computer and use it in GitHub Desktop.
Save dehora/7136257 to your computer and use it in GitHub Desktop.
render unicode escapes in pry
Pry.hooks.add_hook :after_read, :hack_utf8 do |str, _|
str.force_encoding('utf-8')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment