Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Handling Multibyte Characters And Strings In R Project

If you encounter this problem when reading csv-files, you might want to try to change the encoding from UTF-8 to latin1. This worked for me when using the tolower function in R.

Pretty nice solution here with gsub (https://stackoverflow.com/questions/38828620/how-to-remove-strange-char…):

gsub('[^\x20-\x7E]', '', text)

Similar info: https://www.r-bloggers.com/2012/01/removing-multibyte-characters-from-s…

Key words: multi byte utf-8 latin1

Last modified
2021-07-09

Tags

  • Script
  • rscript
  • rstudio

Review Greg on Google

Greg Nowak Google Reviews

 

  • Drupal CMS 2.0: quick starts, harder rebuild choices
  • CMS Upgrades in 2026: A PHP Roadmap for WordPress and Drupal Sites
  • Essential Drupal 8 Modules: What Still Matters on an Older Site
  • Cloudflare Page Rules Debt: The Quiet Way Business Websites Break
  • Model Retirements Are Quietly Breaking AI Integrations
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.