Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong euro symbol #352

Open
harryhays opened this issue May 4, 2021 · 3 comments
Open

Wrong euro symbol #352

harryhays opened this issue May 4, 2021 · 3 comments

Comments

@harryhays
Copy link

harryhays commented May 4, 2021

For example, I get html with encoding <meta charset = "utf-8">

I am making multiple requests to the same url.

In response.body, I sometimes see the correct text:
&#x20AC; 9.99 <br>
But usually this text is incorrect:
&#xFFFD; &#xFFFD; 9.99 <br>

This text is always correct if I get text from
response.raw.toString ()

Also this text is always correct if I use the old version of "needle": "^ 2.2.4"

@tomas
Copy link
Owner

tomas commented May 4, 2021

Is this using the same version of Node? (For version 2.2.4 or newer)

@harryhays
Copy link
Author

Same. I tried with the same result of the node version: 12.18.2 and 14.15.0

Example request ("needle": "^ 2.6.0",):
https://app.upflare.com/cart.php?a=add&domain=register
This happens on the .ch domain

<strong>.ch</strong>
...............................
<span class="tld-label">Renewal</span>
&#xFFFD;&#xFFFD;9.99<br>

Several months ago I saw similar behavior on other sites.

@Phygon
Copy link
Contributor

Phygon commented Feb 7, 2022

Could be related to #374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants