Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

remove_non_utf8

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

Utilities Powering the Globe and Mail's Data Journalism Template

v0.1.1
MIT + file LICENSE
Authors
Tom Cardoso [aut, cre] (creator and maintainer), Michael Pereira [ctb], The Globe and Mail Inc. [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.