Alberson Miranda
Alberson Miranda

Reputation: 1430

bookdown encoding set to LATIN1 instead of UTF-8

Why when i build a book using build book button it sets my encoding to LATIN1 instead of UTF-8? Also, whenever i open a chapter (.Rmd file) i've got reopen it with UTF-8 encoding 'cause it changes back do LATIN1 even if i have just saved it in UTF-8.

==> rmarkdown::render_site(output_format = 'bookdown::gitbook', encoding = 'LATIN1')

Upvotes: 0

Views: 223

Answers (1)

Alberson Miranda
Alberson Miranda

Reputation: 1430

Turns out my Project's encoding was set to LATIN1 (Project options - code editing - Text encoding).

Upvotes: 1

Related Questions