gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
540 stars 58 forks source link

support for web pages with charset gbk #47

Closed GitHubUserC closed 11 months ago

GitHubUserC commented 11 months ago

could you please add support for web pages with charset gbk, currently when saving web pages with charset gbk the code is messed up.

test url: https://www.52pojie.cn/

gildas-lormeau commented 11 months ago

I cannot reproduce the issue. Do you pass any particular options when calling single-file?

GitHubUserC commented 11 months ago

I think I figured out that Chrome in Docker doesn't support displaying GBK-encoded characters, which is why I'm having this problem.

no particular options, I use docker. docker run -v $(pwd):/usr/src/app/out singlefile "https://www.52pojie.cn/" single-file-cli.html