How to render a non-ASCII character?

Hello!

I am trying to use a German umlaut (ö) in my Zola .md file and can’t get to make it work.

The HTML eccape code ö just seems to turn into a jumbled mess too. Does anyone know the way around?

# Testing stuff

Royksöpp

It renders as Royksöpp instead of Royksöpp

Why do you need to escape in Markdown? It should just work if you use Royksöpp

Hello!

Sorry for not pointing that out in the original post. I did that too (tried a UTF8 character instead) and got the same outcome – the same 2 corrupt looking symbols.

I think you should add <meta charset="utf-8" /> inside the head element.

2 Likes

Right! Just noticed that I forgot to do that in my base template.
Yeah, setting the charset to utf-8 fixed the issue :smiley:

@sal Though, it also implies that using an HTML escape code in markdown, will lead to output which will not render correctly without utf-8 in head XD

No idea if that is intentional.

1 Like