#content showing in non utf-8

3 messages · Page 1 of 1 (latest)

umbral gull
#

I have a content collection and .md files

I use them to display posts.

There is some issues with formatting. can't is showing up as can’t

How can i fix this?

lethal geyserBOT
#

Hi @umbral gull. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

This issue is likely due to the encoding of your HTML document. To fix this, you need to set the encoding of your HTML document to UTF-8. You can do this by adding <meta charset="UTF-8" /> to the head of your index page. This should correct the issue with the display of accented characters.

Here is an example of how to do it:

<html>
  <head>
    <meta charset="UTF-8" />
    <!-- rest of your head content -->
  </head>
  <body>
    <!-- your body content -->
  </body>
</html>

This issue has been discussed in the Astro community before. You can find more information in this Github issue (https://github.com/withastro/astro/issues/4538) and this Github issue (https://github.com/withastro/astro/issues/2187).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: