Reputation: 189
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.
Upvotes: 4
Views: 825
Reputation: 29595
There are lots of encodings supported in Ruby. Try typing the following in irb:
Encoding.name_list
Also see these blog entries:
Upvotes: 5