We teach students to use R with RStudio. Every year, we have at least one or two students with special characters in their windows username. This leads to the situation as described here.
The errors are always a bit different. The latest student has this error message showing up in the RStudio GUI:
Error in nchar(homeDir): invalid multibyte string, element 1
The RStudio console has several warning messages:
Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path="C:/Users/N�me/Documents
While the username in this case would be
@andreasr remarked in the linked question:
In theory R 4.2 should support utf8 encoding now but I think you need to change some encoding configuration on Windows for that to work, I haven't tested this myself so I can't give any specifics, hopefully someone else that has already tried would help you.
Does anyone know what we need to change to make RStudio work with special characters in windows usernames?