Decapitalize UTF-8 special characters in R
问题 After I scraped a list of names, I have the following name in R: DAPHN\303\211 DE MEULEMEESTER If I use the function tolower, all the letters are set to lowercase, but not the special characters. What is the best way to achieve this? 回答1: The reason is that your locale is C. Non-ASCII special characters and their letter-case classifications are not recognized under that locale. You should be able to get it to work by switching to a UTF-8 locale: Sys.setlocale(locale='C'); ## [1] "C/C/C/C/C/en