Encoding / Accents / Punctuation / R Markdown Symbols have gone

Asked

Viewed 1,043 times

4

I have had a highly boring situation and the previous tutorials did not help. I recently switched computers, and now the R Markdown accents just got lost. Use windows 10 and the image file below is the syntax of R Markdown.

exploratória turned explorat?ria

possível turned poss?vel

porção turned por??o

Codificação Codificacao animada

Earlier times, I had been able to reverse this by typing in the Console

Sys.setenv(LANGUAGE="en")

Save with encoding does not work.

> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2    yaml_2.2.0    
  • Try "Re-open with the enconding" instead of "save with encoding". And only after it worked, "save with encoding". But detail, if your file has already been saved once without being opened correctly, it is not a guarantee that it works. If this works, I’ll come up with a better answer, now I can’t. I’m waiting for feedback

  • Thank you, @Guilhermeparreira. The re-open unfortunately did not work to reverse the encoding.

  • Vixe, unless the file has been corrupted. Which was the operating system of your old computer?

  • Hi, @Guilhermeparreira. Both was windows 10. I’m here trying to solve too and if I can, I give the feedback. Thank you very much!

  • For nothing!! Make the file available here, or part of it at least, if possible

  • Have you ever tried to change "Re-open with the enconding" to ISO-8859 and then "Re-open with the enconding" to "utf-8" again? It worked for me.

Show 1 more comment

1 answer

-1

is simpler than that, if you put the keyboard on: en ou en-us it will not let you use the accent, and some keys will fail to work, do the following way:

Home menu >> settings >> time and language

1° change the region to Brazilian Portuguese

2° you will change the language tab(by clicking on each one):

  • windows screen
  • apps and websites
  • region format and
  • speaking

to Portuguese(brazil)

On the keyboard you will change to Portuguese of Brazil ABTN2 and then marks the two boxes that are just below.

ready, after that should work normally.

  • if any application is still not working, you type windows update in the initial menu and check if it has updates, then restart the computer.

if it doesn’t work, post again, we can try to reinstall native apps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.