I am currently working with large CSVs of Chinese medical records in R Studio but am having trouble processing Han Chinese characters. In particular, I am able to "view" Chinese characters in table form (i.e. using R Studio's built-in data viewer to see the entire dataset), but I am unable to render them in outputs from code-chunks of the R Markdown -- i.e. unable to "process"/"interact" with them.
I've already tried setting the system locale to Simplified Chinese via Sys.setlocale(category = "LC_CTYPE", locale = "chs")
, reading in the .csv with UTF-8 encoding via read.csv('filepath/filename.csv', encoding = "UTF-8", stringsAsFactors = FALSE)
, and even changing the OS system language (Windows 10), but all to no avail.
Any thoughts you may have on what seems like a "dual-treatment" of Chinese characters in R Studio are greatly appreciated!