I'm trying to create a table using formattable. One of my data columns contains a Czech surname with two letters R does not recognise: ů and č. These two letters are replaced by ? in my table.
I have changed my system locale using the below code, but R still does not recognise these symbols.
Sys.setlocale("LC_CTYPE", "Czech")
[1] "Czech_Czechia.1250"
Edit: I have changed the default text encoding settings of my editor to UTF-8 successfully (Tools>GlobalOptions>Code>saving>Defaulttextencoding).
However, when I attempted to change my locale to UTF-8 I received an error. Below are my code and resulting error message.
Sys.setlocale("LC_ALL",'en_US.UTF-8')
OS reports request to set locale to "en_US.UTF-8" cannot be honored