You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I want to thank for your great work of swirl and swirlify.
I want to use swirl in a workshop for introducing R in Chinese, but I have an encoding issue. The yaml::yaml.load_file only parse UTF-8 encoded document and the rendering in windows is failed.
The following images show the failure with the swirl installed from github:
You could check #300 for the proposed solution. The wrap_encoding recursively mark the encoding of all strings returned from yaml parser. I like to hear any comment from you about this approach.
However, I just notice that the wrap_encoding will trigger error when the raw_yaml contains non-list and non-character object. It is easy to fix this, but I think it's better do it after hearing your feedback.
And it seems that the test cases does not detect this error ( #300 passes the CI ). I could send a PR to detect such kind of error in another PR if you like.
Dear all,
First of all, I want to thank for your great work of swirl and swirlify.
I want to use swirl in a workshop for introducing R in Chinese, but I have an encoding issue. The
yaml::yaml.load_file
only parse UTF-8 encoded document and the rendering in windows is failed.The following images show the failure with the swirl installed from github:
Inspired by vubiostat/r-yaml#6, I mark the
Encoding
to theraw_yaml
inparse_content.yaml
master...wush978:master. The rendering of the Chinese text becomes normal:Could I give you a PR to resolve this issue?
Best,
Wush
The text was updated successfully, but these errors were encountered: