Skip to content

Problem with Http.RequestString detection of response content encoding #1251

@dam5s

Description

@dam5s

When using Http.RequestString to download "https://www.lemonde.fr/rss/une.xml", the resulting string has unexpected character encoding issues:

<title>Le parc locatif privé bousculé par lâessor des locations meublées</title>

instead of the output produced when using System.Net.Http directly:

<title>Le parc locatif privé bousculé par l’essor des locations meublées</title>

I created a small sample project to reproduce the issue and compare to System.Net -
https://github.com/dam5s/fsharp-data-requeststring-issue

I'm running it on .NET core 2.2 on Linux.
Let me know if more details are needed, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions