-
Notifications
You must be signed in to change notification settings - Fork 233
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
Always read and write in UTF-8 #649
Conversation
@krlmlr do you happen to remember why the |
@hadley otherwise the text is re-encoded to the native encoding. I think it is necessary on all platforms that are not utf-8 and not byte-oriented. |
I have code for reading UTF-8 files in my dep-free utf8 package, which I'll release very soon. |
@gaborcsardi even though I'm writing to a utf-8 connection??! |
Yes, R does an involuntary roundtrip via the native encoding. |
Still fails on windows with |
- since r-lib/roxygen2#649 (`roxygen2` >= v6.1.0) warns if a `DESCRIPTION` file does not explicitly define its encoding as UTF-8 - this commits adds encoding information to the DESCRIPTION file even if it may be at odds with `Writing R Extensions` (https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Encoding-issues), but see r-lib/roxygen2#774 - at least, this works for me locally and eliminates the `roxygen2` warning "roxygen2 requires Encoding: UTF-8"
Fixes #564. Fixes #592