Skip to content

Instantly share code, notes, and snippets.

@DriesS

DriesS/log.cmd Secret

Created June 5, 2012 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DriesS/d65c15a2238c3f2a7844 to your computer and use it in GitHub Desktop.
Save DriesS/d65c15a2238c3f2a7844 to your computer and use it in GitHub Desktop.
Export ruby ascii
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) % echo $LC_CTYPE
nl_BE.UTF-8
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) % ruby -e 'p __ENCODING__'
#<Encoding:UTF-8>
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) % vi test.rb
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) % cat test.rb
puts "éllo"
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) % ruby test.rb
test.rb:1: invalid multibyte char (US-ASCII)
test.rb:1: invalid multibyte char (US-ASCII)
dries@MBP-dries ~/Sites/bentostore (feature/ruby_1.9.2*) %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment