Escape Unicode Code Points
Escapes all Unicode (not ASCII-printable) code points.
stri_escape_unicode(str)
str |
character vector |
For non-printable and certain special (well-known,
see also R man page Quotes)
ASCII characters the following
(also recognized in R) convention is used.
We get \a
, \b
, \t
, \n
, \v
,
\f
, \r
, \"
, \'
, \\
or either \uXXXX (4 hex digits) or \UXXXXXXXX (8 hex digits)
otherwise.
As usual, any input string is converted to Unicode before executing the escape process.
Returns a character vector.
Other escape:
stri_unescape_unicode()
stri_escape_unicode('a\u0105!')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.