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

print.tbl_df with encoding #851

Closed
romainfrancois opened this issue Dec 17, 2014 · 2 comments
Closed

print.tbl_df with encoding #851

romainfrancois opened this issue Dec 17, 2014 · 2 comments
Labels
Milestone

Comments

@romainfrancois
Copy link
Member

@romainfrancois romainfrancois commented Dec 17, 2014

> x<-data_frame(name=c("\xC9lise","Pierre","Fran\xE7ois"),score=c(5,7,6) )
> x
Source: local data frame [3 x 2]

Error in nchar(values) : invalid multibyte string 2
> as.data.frame(x)
         name score
1    \xc9lise     5
2      Pierre     7
3 Fran\xe7ois     6
@krlmlr
Copy link
Member

@krlmlr krlmlr commented Apr 11, 2015

The issue should disappear if nchar(values) is substituted by nchar(encodeString(values)) in the code (same for names). But this encodeString looks like a costly operation even for "properly encoded" strings.

Loading

@hadley hadley added this to the 0.5 milestone May 19, 2015
@romainfrancois
Copy link
Member Author

@romainfrancois romainfrancois commented Jul 8, 2015

I don't think the performance penalty is big deal here. Thanks for the hint.

Loading

krlmlr pushed a commit to krlmlr/dplyr that referenced this issue Mar 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants