Skip to content

read_html not reading some UTF-8 characters properly from a file #293

@wkmor1

Description

@wkmor1

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions