-
Notifications
You must be signed in to change notification settings - Fork 286
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
readr::parse_number fails with Japanese data on Windows #1111
Comments
You need to give |
Thank you for the update. It still fails even I pass locale argument. # Set Japanese Locale on Windows
Sys.setlocale("LC_CTYPE", "Japanese_Japan.932")
#> [1] "Japanese_Japan.932"
# Load required packages.
library(readr)
# Steps to produce the output
tmp <- file("https://www.dropbox.com/s/06jmg6k4lnb61p2/flight300.rds?dl=1")
flight <- readRDS(tmp)
test <- readr::parse_number(as.character(flight[[34]]), locale=readr::locale(encoding ="CP932"))
#> Error in nchar(x): invalid multibyte string, element 4 Created on 2020-06-17 by the reprex package (v0.3.0) |
5 tasks
Should be fixed by #1152 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
readr::parse_number
fails with Japanese data on Windows. (Tried it with readr 1.3.1 on R4.0.1)Created on 2020-06-17 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: