# Unmarshal failed

**URL:** <https://discourse.gohugo.io/t/unmarshal-failed/23801>\
**Category:** support\
**Created:** [March 3, 2020, 3:56pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801 "2020-03-03T15:56:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![albertramsbottom](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@albertramsbottom](https://discourse.gohugo.io/u/albertramsbottom)\
**Post date:** [March 3, 2020, 3:56pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801/1 "2020-03-03T15:56:08Z")

</div>

Using the tutorial on Hugo and getting this error

PS C:\Hugo\quickstart\> hugo new posts/my-first-post.md  
Error: “C:\Hugo\quickstart\config.toml:1:1”: unmarshal failed: Near line 0 (last key parsed ‘’): bare keys cannot contain ‘�’

My config.toml file using notepad had lots of Chinese characters in it, so I changed to the following:  
‘theme = “ananke”’ and saved but the error still persists

The echo command worked OK so I suspects that Hugo might be written using a non standard character set??

Any ideas

---

<div class="post-metadata">

**Author:** ![albertramsbottom](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@albertramsbottom](https://discourse.gohugo.io/u/albertramsbottom)\
**Post date:** [March 3, 2020, 5:45pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801/2 "2020-03-03T17:45:20Z")

</div>

Ok, after much head scratching, I opened it in notepad and went to save as, and it was in UTF16 LE, so I saved the file as UTF8

Now in VS code, it is all in Chinese characters??? So what is happening?

I am now able even though my theme declaration in my config.toml file is now in Chinese to run:  
hugo new posts/my-first-post.md and it creates the content

Could have something to do with VS code but I dont think so as when I tried to echo this info in english to the config.toml it still failed. Its a bug in Hugo

I hope this helps anyone else who has this issue

However my config.toml looks like this, so will be a problem  
桴浥⁥‽愢慮歮≥

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [March 3, 2020, 8:30pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801/3 "2020-03-03T20:30:16Z")

</div>

Please share the files you are working with in a git repo, otherwise we can’t reproduce your errors. 🙂

---

<div class="post-metadata">

**Author:** ![Ailyn09](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Ailyn09](https://discourse.gohugo.io/u/Ailyn09)\
**Post date:** [November 8, 2020, 6:10pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801/4 "2020-11-08T18:10:23Z")

</div>

The error is in your config.toml file:

```auto
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
'theme = "ananke"' 

```

You just need to remove the ’ in theme:

```auto
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"

```

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [November 9, 2020, 4:00pm UTC](https://discourse.gohugo.io/t/unmarshal-failed/23801/5 "2020-11-09T16:00:00Z")

</div>

This topic was automatically closed after 20 hours. New replies are no longer allowed.
