convert_umlauts_to_utf8: Convert German Umlauts to a More or Less Suitable 'utf8'...

View source: R/convert_umlauts_to_utf8.R

convert_umlauts_to_utf8R Documentation

Convert German Umlauts to a More or Less Suitable 'utf8' Representation

Description

Convert German Umlauts to a More or Less Suitable 'utf8' Representation

Usage

convert_umlauts_to_utf8(x)

## S3 method for class 'character'
convert_umlauts_to_utf8(x)

## S3 method for class 'data.frame'
convert_umlauts_to_utf8(x)

Arguments

x

A string or data.frame.

Value

x with the umlauts converted to utf8.

See Also

Other German umlaut converters: convert_umlauts_to_ascii(), convert_umlauts_to_tex(), get_german_umlauts()

Examples

string <- "_(\xdcLH)"
print(string)
print(convert_umlauts_to_utf8(string))
string <- "this is _(\xdcLH) string"
df <- data.frame(v1 = c(string, "foobar"),
                 v2 = c("foobar", string), v3 = 3:4)
names(df)[3] <- "y_(\xdcLH)"
convert_umlauts_to_utf8(df)
convert_umlauts_to_ascii(convert_umlauts_to_utf8(df))

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