I need help on how to solve a problem encoding special characters in R.I am working on a data warehouse project stored in slq server. The data is in French and when I do my calculations, I encounter encoding problems. How in the following examples:
dbWriteTable(conn = db,name = SQL('"MYDATABASE"."dbo"."my_table"'),value = consentement,row.names = FALSE,overwrite = FALSE,append = TRUE
And I've got the guy's message:
Error in `dbWriteTable()`:! ODBC failed with error 42000 from [Microsoft][ODBC Driver 17 for SQL Server][SQL Server].✖ Procédure stockéeÂ'NA' introuvab•<SQL> 'NA'ℹ From nanodbc/nanodbc.cpp:1787.Backtrace:1. DBI::dbWriteTable(...)9. odbc (local) `<fn>`("nanodbc/nanodbc.cpp:1787: 42000\n[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Procédure stockéeÂ'NA' introuvab \n<SQL> 'NA'")
I have made every possible recommendation I could get on the internet and Chat gpt but it still doesn't work.
Anyone in their right mind might have a solution or a lead to offer me. Thank you in advance for your help.