Construct a string from hex value : Escape Characters « String « Ruby
- Ruby
- String
- Escape Characters
Construct a string from hex value
"\x10\x11\xfe\xff" # => "\020\021\376\377"
"\x48\145\x6c\x6c\157\x0a" # => "Hello\n"
Related examples in the same category