Showing the UTF-8 wave icon

This snippet:

<p className="introduction">{React.string("Hi! 👋")}</p>

is shown as

Hi! 👋

Ideas…?

The correct header is set.

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

For now, use backticks for UTF-8 strings:

<p className="introduction"> {React.string(`Hi! 👋`)} </p>

The upcoming ReScript v10 will fix this thankfully.

2 Likes

Cool, thanks. I thought I tried backtick, but maybe I was confused and put the Unicode number in backtick instead. :dizzy_face: