Skip to content

Commit

Permalink
Added another test for fread encoding, #563.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsrinivasan committed Aug 25, 2015
1 parent f089fbf commit 844837a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -6739,7 +6739,7 @@ test(1547, foo(1L, 5L, a=2L, "c"), c("2", "c"))
text="A,B\ną,ž\nū,į\nų,ė\nš,ę\n"
test(1548.1, unique(unlist(lapply(fread(text, sep=",", header=TRUE), Encoding))), "unknown")
test(1548.2, unique(unlist(lapply(fread(text, sep=",", header=TRUE, encoding="UTF-8"), Encoding))), "UTF-8")

test(1548.3, fread(text, sep=",", encoding="UTF-8", data.table=FALSE), read.table(text=text, sep=",", header=TRUE, encoding="UTF-8", stringsAsFactors=FALSE))
##########################


Expand Down

0 comments on commit 844837a

Please sign in to comment.