remove_non_utf8: Removes non-UTF-8 characters

View source: R/helpers.R

remove_non_utf8R Documentation

Removes non-UTF-8 characters

Description

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

Usage

remove_non_utf8(x)

Arguments

x

A character vector.

Value

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

Examples

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


upstartr documentation built on May 29, 2024, 9:08 a.m.