7.1.3 Non-ASCII characters in data

  • To include non-ASCII characters, use UTF-8 encoding.
  • Include Encoding: UTF-8 in the DESCRIPTION
  • If you use usethis::create_package(), the encoding will automatically be listed in the DESCRIPTION
  • To make sure strings have UTF-8 encoding, use functions like Encoding(), enc2utf8(), and iconv() in your data preparation scripts in data-raw/.