Created
July 25, 2011 18:54
-
-
Save nnay13/1104864 to your computer and use it in GitHub Desktop.
Encoding variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
# YGX 25/07/2011 | |
# Display the encondings | |
puts "Ruby Version : #{RUBY_VERSION} - #{ENV['RUBY_VERSION']} " | |
puts "Plateform : #{RUBY_PLATFORM}" | |
puts "RVM version : #{ENV['rvm_version']}" | |
puts "\n" | |
puts "Source encoding : #{__ENCODING__}" | |
puts "Default external : #{Encoding.default_external}" | |
puts "Default internal : #{Encoding.default_internal}" | |
puts "Locale charmap : #{Encoding.locale_charmap}" | |
puts "LANG : #{ENV['LANG']}" | |
# Results on my UBUNTU 11.04 Laptop | |
# | |
# Ruby Version : 1.9.2 - ruby-1.9.2-p290 | |
# Plateform : i686-linux | |
# RVM version : 1.6.23 | |
# | |
# Source encoding : US-ASCII | |
# Default external : UTF-8 | |
# Default internal : | |
# Locale charmap : UTF-8 | |
# LANG : fr_FR.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment