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

[R-Forge #5266] Joins broken with Encoding "unknown" #66

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 0 comments
Closed

[R-Forge #5266] Joins broken with Encoding "unknown" #66

arunsrinivasan opened this issue Jun 8, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Stefan Fritsch; Assigned to: Arun ; R-Forge link

Hi,

joins still don't work on identical strings if the Encoding is declared for one but not for the other.

Note that you fixed a similar error (much to my delight =) in chmatch in #4818. This is distinct from #5159 because in this case it is the same encoding only it's not declared explicitly for one string.

Data.table is 1.8.11 rev 1064

The "ä" is latin1 in my case. Probably the same for UTF-8(?)

a<-c("a","ä")
b<-a

Encoding(a)<-"unknown"

A<-data.table(a,c=1:2,key="a")
B<-data.table(b,d=2:1,key="b")

A[B]

a c d
1: a 1 2
2: ä NA 1

arunsrinivasan added a commit that referenced this issue Jan 20, 2016
@arunsrinivasan arunsrinivasan added this to the v1.9.8 milestone Jan 20, 2016
@arunsrinivasan arunsrinivasan self-assigned this Jan 20, 2016
arunsrinivasan added a commit that referenced this issue Jan 27, 2016
When marked non-utf8 encodings are detected, they are internally converted to utf-8 before comparing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant