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 of column names #115

Closed
mgirlich opened this issue May 20, 2019 · 0 comments

Comments

@mgirlich
Copy link

commented May 20, 2019

vroom should use UTF-8 for column names like readr does

library(tidyverse)
#> Warning: package 'ggplot2' was built under R version 3.5.2
#> Warning: package 'tibble' was built under R version 3.5.2
#> Warning: package 'tidyr' was built under R version 3.5.2
#> Warning: package 'purrr' was built under R version 3.5.2
#> Warning: package 'dplyr' was built under R version 3.5.2
#> Warning: package 'stringr' was built under R version 3.5.2
#> Warning: package 'forcats' was built under R version 3.5.2
cols <- readr::read_csv("Umsatz: Bestellungen – % der Summe \n6\n") %>% 
  colnames()
Encoding(cols)
#> [1] "UTF-8"

cols <- vroom::vroom("Umsatz: Bestellungen – % der Summe \n6\n") %>% 
  colnames()
#> Observations: 1
#> Variables: 1
#> dbl [1]: Umsatz: Bestellungen – % der Summe
#> 
#> Call `spec()` for a copy-pastable column specification
#> Specify the column types with `col_types` to quiet this message

Encoding(cols)
#> [1] "unknown"
tools::showNonASCII(cols)
#> 1: Umsatz: Bestellungen <e2><80><93> % der Summe

Created on 2019-05-20 by the reprex package (v0.3.0)

@jimhester jimhester closed this in 74627dc May 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.