Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Special characters on Grav site

Solved by pamtbaau View solution

Started by Artin Dekker 3 years ago · 4 replies · 372 views
3 years ago

hi,

I'm building a very simple Grav site. In Dutch we use characters like ë in, for example, the word cliëntenraad. Grav doesn't seem to know these characters, making cliëntenraad, for example, Cli�ntenraad. Is there a way to solve this? It doesn't seem to matter which theme I use.

last edited 06/28/23 by Artin Dekker
3 years ago

Using the default theme Quark Grav does a great job in dealing with non-standard characters.

When I use your example “cliëntenraad” in a page content (markdown) the possibly problematic character ë is shown as is in the rendered HTML page.

Can you please test with Quark and if the issue persists share more details about your config (use of Twig templates, language settings, plugins…)?

last edited 06/28/23 by Ron Wardenier
3 years ago

Hi bleuzinn,

I have activated the Quark theme, but even then some characters are not displayed correctly. The language is set to Dutch, I have only installed the plugins that are standard part of Grav Admin. The URL in question is https://website.artindekker.com.

3 years ago Solution

@artinas, This has got little to do with Grav, but with character sets in general. If this were a Grav issue, Grav wouldn't be useful in many countries...

Check the character set used by your editor. It should be UTF-8 which matches the character set expected by the browser.

HTML
<!DOCTYPE html>
<html lang="nl">
<head>
    <meta charset="utf-8" />

After changing the character set of your editor, replace the diacritics with the proper diacritics used by UTF-8.

See the last warning in the docs in paragraph Page Editing in chapter Basic Tutorial.

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 97 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 185 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 61 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 255 1 year ago