Construct a string from hex value : Escape Characters « String « Ruby

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

1.Escape Characters list
2.Escape a single quote
3.Escape backslash
4.Put a string with control character
5.Check the length of a string which has the control character inside
6.Representing Unprintable Characters
7.Escape sequence and hex number
8.String operation on escape char
9.Tab key in double quotation
10.Use Tab key in {}
11.use tab key in %Q{}
12.Tab key in single quotation mark key in %q{}