Skip to content
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

Make sure yaml::yaml.load() marks character output as UTF-8 #421

Merged
merged 6 commits into from Apr 29, 2015
Merged

Make sure yaml::yaml.load() marks character output as UTF-8 #421

merged 6 commits into from Apr 29, 2015

Conversation

yihui
Copy link
Member

@yihui yihui commented Apr 28, 2015

I used a function mark_utf8() to mark all character strings as UTF-8 recursively if yaml.load() returns a list.

@yihui
Copy link
Member Author

yihui commented Apr 28, 2015

Unfortunately, I just realized that I forgot to consider the character encoding in knitr::knit_params() and just pushed the fix yihui/knitr@9df7244 so if a document contains the params field, it may fail on Windows.

@jjallaire
Copy link
Member

This looks good to me. @jmcphers let us know if you also think this looks okay.

@yihui Could you also add a bullet to NEWS for this?

@yihui
Copy link
Member Author

yihui commented Apr 28, 2015

Done.

@jjallaire
Copy link
Member

@jmcphers Does this PR look okay to you? (want to merge it soon so it gets into the preview)

@jmcphers
Copy link
Member

Yes, this looks good to me. Thanks @yihui!

jmcphers added a commit that referenced this pull request Apr 29, 2015
Make sure yaml::yaml.load() marks character output as UTF-8
@jmcphers jmcphers merged commit b95041d into rstudio:master Apr 29, 2015
@yihui yihui deleted the bugfix/yaml-utf8 branch April 29, 2015 17:43
yihui added a commit to yihui/knitr that referenced this pull request Apr 30, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants