Unicode string : unicode « String « Ruby






Unicode string


money = "\u{20AC A3 A5}"  # => "€£¥"

money = "\u{20AC 20 A3 20 A5}"  # => "€ £ ¥"

 








Related examples in the same category

1.leading zeros cannot be dropped
2.Greek lowercase pi
3.a string literal containing a multibyte multiplication character
4.The string contains 6 bytes which encode 5 characters