escape_non_ascii: Escape non-ASCII Characters

View source: R/escape_non_ascii.R

escape_non_asciiR Documentation

Escape non-ASCII Characters

Description

I often get code with german umlauts that need to be escaped.

Usage

escape_non_ascii(x)

Arguments

x

A character vector.

Value

A character vector.

See Also

Other vector functions: char2factor(), file_string(), powers_of_ten

Examples

x <- c("foo", "djörman", "bar", "djörman bar")
escape_non_ascii(x)
# change file
f <- tempfile()
writeLines(x, f)
writeLines(escape_non_ascii(readLines(f)), f)

fritools documentation built on Feb. 18, 2026, 9:06 a.m.