Encoding bug
Hello,
I have a problem encoding accented letters on alpine that I don't encounter on Ubuntu. However, if I force the encoding to UTF-8, I have no more problems.
Do you have an idea about how to approach this issue ?
Hi!
Default encoding for web documents is Latin-1, not UTF-8. When you render a document from the web, HTTP gives WeasyPrint hints about the encoding, so it’ll work even if it’s UTF-8. But if you render a document from the disk, there’s no HTTP hint, it’ll use the default Latin-1 encoding.
If you want to force WeasyPrint to use UTF-8, then use the --encoding parameter, or set a charset meta tag in your HTML file.
Is there anything more we can do for you?
Feel free to reopen if needed.
Thank you for your reply, which really helped me with my troubleshooting session. No need to reopen it.