Skip to content

Encoding issue #1119

@srenault

Description

@srenault

Bug Description

For a single request, which as always the same response, I'm having an encoding issue that appears only from time to time.
In the response, I'm having this character � instead of special characters like é or à etc...
The encoding issue doesn't appear for all special characters in the response.
Over the time, it's not always the same characters that are impacted by the encoding issue.

Reproducible By

I used this simple gist to reproduce the issue:
https://gist.github.com/srenault/654c0179277a29b1c798461b20d5ec44

Logs & Screenshots

Screenshot 2021-12-02 at 20 43 58

Environment

Node v14.16.0

Additional context

If I reset the globalDispatcher with a new Agent() before each call of request, I don't have the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions