getCSV and special characters

Sorry if this has been answered elsewhere, I’ve been searching for a while but can’t find anything relevant.

I’m trying to use getCSV to create a table, this is working fine however it doesn’t seem to like non-english characters such as German umlauts ö for example. These appear as Sm�gen Whisky in the HTML. Can anyone point me in the right direction here?

Check that your CSV file is encoded in UTF-8.

Cheers for your reply, the file is definitely encoded as UTF-8

I am unable to reproduce this behavior. Can you share your project repository? Privately if you wish.

Also, what do you mean when you say, “These appear as Sm�gen Whisky in the HTML?”

  • In the browser when visiting your live site? Which browser? Which OS?
  • In the browser when running hugo server? Which browser? Which OS?
  • When opening the HTML file in an editor? Which editor? Which OS?
1 Like

Check the used fonts for containing this characters.

Cheers all, and sorry to be that incredibly unhelpful guy but the issue seems to have corrected itself following a reboot and another build. It was not font related, I’m guessing it was a file format issue and hugo must have been caching/not overwriting the files it was using during build for some reason

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.