What is the Unicode encoding for Ruby? I know that most languages are encoded in UTF-16 like Java. I was wondering what Ruby was encoded in. I’ve checked the documentation, but can’t find any reference to it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are lots of encodings supported in Ruby. Try typing the following in irb:
Also see these blog entries:
Ruby 1.9 String
Ruby 1.9: default encodings