Convert Characters to ASCII
Convert character vector to ASCII, replacing non-ASCII characters with single-byte (\x00) or two-byte (\u0000) codes.
ASCIIfy(x, bytes = 2, fallback = "?")
a character vector, possibly containing non-ASCII characters.
an output character to use, when input characters cannot be converted.
A character vector like
x, except non-ASCII characters have
been replaced with \x00 or \u0000 codes.
To render single backslashes, use these or similar techniques:
The resulting strings are plain ASCII and can be used in R functions and datasets to improve package portability.
Arni Magnusson firstname.lastname@example.org
showNonASCII identifies non-ASCII characters in
a character vector.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.