stri_enc_toascii: Convert To ASCII

Description Usage Arguments Details Value See Also

Description

Converts input strings to ASCII, i.e. to strings with all codes <= 127.

Usage

1

Arguments

str

character vector to be converted

Details

All charcodes > 127 are replaced with ASCII SUBSTITUTE CHARACTER (0x1A). R encoding marking is always used, to determine whether an 8-bit encoding or rather UTF-8 is used on input.

Bytes-marked strings are treated as 8-bit strings.

The SUBSTITUTE CHARACTER (\x1a == \032) may be interpreted as ASCII missing value for single characters.

Value

Returns a character vector.

See Also

Other encoding_conversion: stri_conv, stri_encode; stri_enc_fromutf32; stri_enc_toutf32; stri_enc_toutf8; stringi-encoding


stringi documentation built on May 2, 2019, 4:54 p.m.