Czech encoding in R

前端 未结 2 1623
甜味超标
甜味超标 2021-01-19 04:12

I have installed RStudio on a new computer, and has developed encoding issues. When I type accented text in console (no file writing or reading involved, just plain console)

2条回答
  •  不要未来只要你来
    2021-01-19 04:48

    Perhaps:

    new.locale <- ifelse(.Platform$OS.type=="windows", "Czech_Czech Republic.1250", "en_US.UTF-8")
    Sys.setlocale("LC_CTYPE", new.locale) 
    

    Also learn to specify your OS.

提交回复
热议问题