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

Encoding to UTF-8 #107

Closed
wants to merge 4 commits into from
Closed

Encoding to UTF-8 #107

wants to merge 4 commits into from

Conversation

spgarbet
Copy link
Member

A modified version of 7256cba that preserves attributes and passes tests. This should solve #90 and #105.

@spgarbet
Copy link
Member Author

This leaves #105 printing a <9b> when the encoding isn't specified and when encoding is specified properly.

@spgarbet
Copy link
Member Author

This also solves #21.

@spgarbet
Copy link
Member Author

On review this is a dangerous change. It doesn't properly deal with all the possible R objects that could be passed in. It also copies everything in memory, which would make large yaml files horribly inefficient.

Open questions 1) Does libyaml require UTF-8? 2) Examine how python deals with the encoding issue when using libyaml

Possible solutions: Check for UTF-8 on input, if not UTF-8 halt and recommend pre conversion.

@spgarbet
Copy link
Member Author

Moved discussion into #113

@spgarbet spgarbet closed this Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants