1

I am pulling changes from a git repo where my coworker pushed R codes from his local windows

word <- gsub("=gesellschaftmitbeschränkterhaftung=","",fixed = T,x = word)

The code contains weird letters, such as "German Umlaute", e.g., "ä" in the example above. On windows, this works fine. But when I open the same code on the Cloudera Data Science Workbench, it messed up the special character:

  word <- gsub("=gesellschaftmitbeschr�nkterhaftung=","",fixed = T,x = word)

I could manually replace it, but that is obviously a very painful solution and defeats the purpose of git. Is there any way to circumvent this issue? Find here the original R code, as pushed to Git from the windows machine containing all lines that cause issues.

safex
  • 2,398
  • 17
  • 40
  • 2
    Maybe [this](https://superuser.com/a/1347957) or [this](https://stackoverflow.com/a/39252721/3574579) help? – semola Jul 06 '21 at 10:11

0 Answers0