-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CJK in footer text renders incorrectly on posts #417
Comments
Can one of the UTF / text encoding experts have a look into this please? |
Is Similar issue has been presumably fixed in the past (#98), so we need to have something to work on and test ourself. Thank you. |
I have created a minimal reprex using a clean website blog created from RStudio. All I've done is add _footer.html with some Japanese, knit the post and render the site. Repo at: https://github.com/shikokuchuo/demo As you can see, the text renders correctly in index.html here: Thanks!
|
Thanks a lot for your example repo. This helped me found where the error is. The footer file will be process in some cases here Lines 278 to 285 in dcfab66
and encoding is not correctly handle with xml2 here - I'll see how this can be fixed. Thanks a lot ! |
Please can you try rendering your website using remotes::install_github("rstudio/distill#446") This works for me, I would like you to confirm. thanks! |
@cderv thanks yes, I can confirm it works (on the real site as well as the reprex). Thanks for the quick turnaround! |
I have CJK text in
_footer.html
Knitting individual posts does not render this text correctly but produces gobbledygook such as:
ã�¯å��å�½ä¸å¤®å¸�å½¹æ��ã�¨é�¢ä¿�ã��ã��ã��ã�¾ã��ã��ã��
Using
rmarkdown::render_site()
also causes this footer text to be mangled on all posts (as I guess it re-renders the footer text on each post). However the text renders correctly for the site pages such as index.html in the base directory.It should be that everything is UTF-8 and we would not encounter such issues.
sessionInfo() output:
The text was updated successfully, but these errors were encountered: