Gatsby: [www - gatsby-transformer-screenshot] Puppeteer cannot capture Chinese or UTF-8 properly

Created on 14 Jul 2019  路  3Comments  路  Source: gatsbyjs/gatsby

Description

Puppeteer itself cannot recognize UTF-8 character (Chinese, Thai etc.) and fallback to square character instead

Screenshot

Screenshot

I think there's a way to resolve this by set system locale to UTF-8 in Dockerfile before Gatsby site was built, I will launch PR there.

Steps to reproduce

Capture some Chinese sites screenshot by using gatsby-transformer-screenshot

Expected result

I will use https://arnondora.in.th as an example

Screenshot

Actual result

Screenshot

Environment

I think there's no need here

help wanted confirmed bug

All 3 comments

Thank you for opening this!

Like @wardpeet mentioned on the pull request, we run this (/packages/gatsby-transformer-screenshot/lambda/index.js ) on lambda.

We're open to a complete rewrite of the service that's more reliable and works with UTF-8 characters.

鈽濓笍馃憣 Thanks @missmatsuko for pointing that out.
Thanks @rayriffy!

Closing as duplicate of #5929, lets continue over there!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theduke picture theduke  路  3Comments

dustinhorton picture dustinhorton  路  3Comments

signalwerk picture signalwerk  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

hobochild picture hobochild  路  3Comments