In version 1.3.0 some characters are not being read properly from a file
# xml 1.2.5
tmp <- tempfile()
cat("’", file = tmp)
xml2::read_html(tmp, encoding = "UTF-8")
#> {html_document}
#> <html>
#> [1] <body><p>’</p></body>
# xml 1.3.0
tmp <- tempfile()
cat("’", file = tmp)
xml2::read_html(tmp, encoding = "UTF-8")
#> {html_document}
#> <html>
#> [1] <body><p>â\u0080\u0099</p></body>