7
7stud --
eacute = ""
eacute << 0xC3 << 0xA9 #eacute<< 195 << 169 ; or é
p eacute
--output:---
"\303\251"
That ouput is in octal--although there is no leading 0.
1) Where does that format come from, i.e. no leading 0?
2) Why is the output in octal and not hex?
I looked up String#<< and it says it converts any Fixnum between 0-255
to a character.
3) Using what character set?
Thanks.
eacute << 0xC3 << 0xA9 #eacute<< 195 << 169 ; or é
p eacute
--output:---
"\303\251"
That ouput is in octal--although there is no leading 0.
1) Where does that format come from, i.e. no leading 0?
2) Why is the output in octal and not hex?
I looked up String#<< and it says it converts any Fixnum between 0-255
to a character.
3) Using what character set?
Thanks.