0
When I visit a site in Chrome, it shows non-Latin characters just fine. However, when I run the same site in headless Chrome on Ubuntu Server and view the site via the debugger on port 9222, then all characters show as empty rectangles [].
This issue occurs for languages like Chinese, Indian, Arabic, etc.
The site uses the Liberation font and the site's header is set to the utf-8 charset. The Liberation font is both installed on Ubuntu Server and the font is loaded locally from the server's webroot as well using CSS. In regular Chrome this works flawlessly, but not in headless mode.
Apparently it's a known issue that headless Chrome can't display non-Latin characters by default out of the box, however I haven't been able to find any comprehensive solution for it so far.
How do I make non-Latin characters work in headless Chrome? Preferably with the Liberation font which I'm already using.