Skip to contents

The replacement character, U+FFFD, is used to mark characters that could not be loaded. These characters might be a sign of encoding issues, so it is advisable to investigate and try to eliminate any cases in your text, but in the end these characters will almost definitely confuse downstream processes.

Usage

remove_replacement_characters(text)

Arguments

text

A character vector to clean.

Value

The character vector with replacement characters removed.

Examples

remove_replacement_characters(
  paste(
    "The replacement character:",
    intToUtf8(65533)
  )
)
#> [1] "The replacement character: "