You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
merge() result incorrect (NAs) when by column contains non-ASCII characters #2072
The function works well under Linux.
If I use merge(as.data.frame(d1), as.data.frame(d2), by="a", all.x=TRUE, sort=FALSE), then I can also get the expected result.
I guess it is caused by encoding problems in Windows platform.
Uh, OK sorry then. Thanks for checking.
We should try to close it by providing unit test. AFAIK it is possible to have non-ascii in tests, but has to be encoded properly, so requires to map chinesse letters to unicode chars like \u000.
Activity
madlogos commentedon Mar 27, 2017
The function works well under Linux.
If I use
merge(as.data.frame(d1), as.data.frame(d2), by="a", all.x=TRUE, sort=FALSE), then I can also get the expected result.I guess it is caused by encoding problems in Windows platform.
arunsrinivasan commentedon Mar 30, 2017
Confirmed on Windows 10 under R-GUI, DT v1.10.4.
jangorecki commentedon May 23, 2020
I would say to best way to go is to use ascii column names, and if non-ascii names are needed, use labels instead. That will be covered by #623.
shrektan commentedon May 23, 2020
@jangorecki No, this issue has nothing to do with non-ascii colnames. It's about the non-ascii values and has been fixed already.
I just confirm that on Windows 10 with the dev version, the result is expected.
We should close this issue.
jangorecki commentedon May 23, 2020
Uh, OK sorry then. Thanks for checking.
We should try to close it by providing unit test. AFAIK it is possible to have non-ascii in tests, but has to be encoded properly, so requires to map chinesse letters to unicode chars like
\u000.MichaelChirico commentedon Nov 9, 2026
This is fixed on
masterby #2566 and #3451