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

Chinese garbled code #1042

Closed
xiaoxuan6 opened this issue Apr 17, 2024 · 2 comments
Closed

Chinese garbled code #1042

xiaoxuan6 opened this issue Apr 17, 2024 · 2 comments
Labels
question Questions related to rod

Comments

@xiaoxuan6
Copy link

Rod Version: v0.0.0-20240401082821-6a4d1da0712a

The code to demonstrate your question

// 创建浏览器实例
browser := rod.New().MustConnect()
defer browser.MustClose()

// 新建一个页面并访问指定网址
page := browser.MustPage(homepage).MustWaitLoad()

// 修改页面的字符编码为UTF-8
page.Eval(`document.charset = "UTF-8"`)

// 等待页面加载完成后进行截图
page.MustScreenshot(img)

What you got

1713343300

@xiaoxuan6 xiaoxuan6 added the question Questions related to rod label Apr 17, 2024
Copy link

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.115.0

generated by check-issue

@ysmood
Copy link
Collaborator

ysmood commented Apr 17, 2024

Use this docker image: https://go-rod.github.io/#/custom-launch?id=remotely-manage-the-launcher

# fonts
fonts-liberation fonts-noto-color-emoji fonts-noto-cjk \

@ysmood ysmood closed this as completed Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants