Skip to content

Commit ad80955

Browse files
committed
Set useBytes = TRUE, so output is no re-encoded
1 parent 6543857 commit ad80955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-read-xml.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test_that("read_html works with non-ASCII encodings", {
9090
tmp <- tempfile()
9191
on.exit(unlink(tmp))
9292

93-
writeLines("<html><body>\U2019</body></html>", tmp)
93+
writeLines("<html><body>\U2019</body></html>", tmp, useBytes = TRUE)
9494
res <- read_html(tmp, encoding = "UTF-8")
9595

9696
expect_equal(as.character(res, options = ""),

0 commit comments

Comments
 (0)