Rails 18n French: Special Characters appear when words with accent are being used

650 views Asked by At

I added french translation using i18n gem. Most of the french words with accent characters get printed correctly but some of the words are behaving incorrectly.

Sécurité gets printed instead of Sécurité. I tried to escape the accented characters with backticks or double single quotes but was unable to achieve the correct result.

In .re file: <h3 className="text-lg font-semibold"> {t("security") |> str} </h3>

In .yml file: security: "Sécurité"

0

There are 0 answers