noamross / redoc

[NOTE: Project in suspended animation for now] Reversible Reproducible Documents
https://noamross.github.io/redoc
Other
514 stars 44 forks source link

Fix handling of UTF-8 strings on Windows #73

Open yutannihilation opened 3 years ago

yutannihilation commented 3 years ago

(I notice this package is in "suspended animation", but let me file this so that someone who faced this problem can find here)

I heard redoc won't work on Windows with Japanese locale (I guess this happens on the other locales as well). This is because some base R functions uses the default encoding, not UTF-8, to read/write files. This pull request is a naive solution to it, and they say this works.