Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Not able to generate html snapshot when it contains image url having mbcs characters #13247

Closed
ranjitaneesh opened this issue May 19, 2015 · 2 comments
Labels

Comments

@ranjitaneesh
Copy link

I am using the below html and then taking a snapshot of it using rasterize.js. When I run this on windows (phantomjs version 1.9.8) it runs fine however when I try to run the same on linux (phantomjs 2.0.0.) the image does not come up in the snapshot showing instead a question mark.

<html>
<body>
<img alt="" src="http://www.iteye.com/upload/top_picture/0000/0073/想不过都难336.280.jpg"></img>
</body>
</html>

I tried to do a curl -v http://www.iteye.com/upload/top_picture/0000/0073/想不过都难336.280.jpg
and below is the output just in case it is useful. I had redirected the image to a separate file.

* About to connect() to www.iteye.com port 80 (#0)
*   Trying 114.112.73.221... connected
* Connected to www.iteye.com (114.112.73.221) port 80 (#0)
> GET /upload/top_picture/0000/0073/想不过都难336.280.jpg HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: www.iteye.com
> Accept: */*
>
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0< HTTP/1.1 200 OK
< Expires: Fri, 13 May 2016 10:47:25 GMT
< Cache-Control: max-age=31104000
< Content-Type: image/jpeg
< Accept-Ranges: bytes
< ETag: "2346873256"
< Last-Modified: Wed, 06 May 2015 03:15:26 GMT
< Content-Length: 35131
< Date: Tue, 19 May 2015 10:47:25 GMT
< Server: ITeye SERVER
<
{ [data not shown]
100 35131  100 35131    0     0  15270      0  0:00:02  0:00:02 --:--:-- 31706* Connection #0 to host www.iteye.com left intact

* Closing connection #0

Please suggest what should I do to make this work ?
I also tried using var setting { encoding: "utf8"}; but it did not make any difference.

@ranjitaneesh
Copy link
Author

The solution to the issue I am facing is using proxy server settings, however it is strange that curl worked without providing one but phantomjs requires it. Also I dont require it for all internet based urls but some of them!

@stale stale bot added the stale label Dec 27, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant