remove_non_utf8: Removes non-UTF-8 characters

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Removes non-UTF-8 characters in a given character vector.

Usage

1

Arguments

x

A character vector.

Value

A character vector of strings without non-UTF-8 characters.

Examples

1
2
3
non_utf8 <- 'fa\xE7ile'
  Encoding(non_utf8) <- 'latin1'
  remove_non_utf8(non_utf8)

upstartr documentation built on Feb. 23, 2021, 9:06 a.m.