celianou
celianou

Reputation: 207

How to change the encoding of R files

I want to change the encoding of some R files directly in Rstudio. I though you can by going to Tools > Global Options > General but the option isn't here.

That's sure it was here before because I found this post, which describe the way to do this. But, actually, this option is not here anymore.

How to change the character encoding of .R file in RStudio?

Someone knows where I can find it ?

Upvotes: 1

Views: 1783

Answers (1)

Alexander Engelhardt
Alexander Engelhardt

Reputation: 1712

I think you are looking for either "File > Reopen with Encoding" or "File > Save with Encoding". If the source file already is in the other encoding, then re-open it, but if you want to change it into the other encoding, then choose "Save with encoding".

Upvotes: 4

Related Questions