Latin1 characters not being rendered in Quarto #4759
-
I'm trying to generate a pdf report in Portuguese, but words with accents are not rendered. Is there any way to change the encoding used in rendering to Latin1? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think the issue is likely the font (you need to use a unicode font in your PDF document). If you're using the default out of the box PDF generation in Quarto, you'll be using the ---
title: Test unicode content
format:
pdf:
mainfont: DejaVuSerif.ttf
sansfont: DejaVuSans.ttf
monofont: DejaVuSansMono.ttf
---
## probabilístico
probabilístico
```
probabilístico
``` HTH! |
Beta Was this translation helpful? Give feedback.
-
@dragonstyle Apparently that's the problem, but the error persists even with the suggested font. Do you know where I can find the unicode fonts available in Quarto? |
Beta Was this translation helpful? Give feedback.
-
I was able to make it work by reopening the file in RStudio with UTF-8 encoding (even using it in Windows). |
Beta Was this translation helpful? Give feedback.
I was able to make it work by reopening the file in RStudio with UTF-8 encoding (even using it in Windows).