problem with .qmd an .Rmd file encoding in RStudio

Hi,
I am using RStudio 2024.12.1 Build 563 in Ubuntu 22.04 LTS.
When I create a .Rmd or a .qmd file, RStudio opens and saves the files with ISO8859-1 encoding. This happens in spite of having checked the global option "UTF-8 as the default encoding". I can change the encoding with the option "reopen with encoding...", but after saving with de desired encoding (checking the option "Set as default encoding for source files") and closing the file, when I open it again, it opens with de ISO8859-1 encoding.
What can I do to solve this problem?
PD: This problem does not happen with .R files.

I have opened an issue on this so we (RStudio team) can investigate. problem with .qmd and .Rmd file encoding in RStudio · Issue #15970 · rstudio/rstudio · GitHub.

1 Like

@lvazdela Do you by chance have a GitHub account? We have an open question in the bug report that @GaryR opened.

Hi,
Thanks for asking, I work with a pc with Windows 10, a pc with Windows 11, a Macbook and a ubuntu laptop. When I created .qmd files in the Windows 10 pc, when opened in the other machines, it opened with ISO-8859_1 encoding, but what was happening is that the project had this codification by default (I use onedrive to synchronize the files) , so what I did is checking the defults in each computer before opening .qmd of .Rmd files. Sorry for this false alarm.

Great that it's working and thanks for the update! I'll close the issue.