Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Unicode Encoding

Tags:

ruby

unicode

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.

like image 209
Victor Kmita Avatar asked Nov 01 '25 02:11

Victor Kmita


1 Answers

There are lots of encodings supported in Ruby. Try typing the following in irb:

Encoding.name_list

Also see these blog entries:

Ruby 1.9 String

Ruby 1.9: default encodings

like image 179
theglauber Avatar answered Nov 04 '25 00:11

theglauber