hi guys
I updated Hugo from 0.31 to 0.51. Old projects are ok. But when I start a new project, there is an error with diacritic in Content _index.md. (front matter) _index.md:
---
Title: hello š ů ý
---
Error:failed to unmarshal YAML: yaml: invalid leading UTF-8 octet
Look up that error, and the name of your text editor. It may be that your editor is not saving the file as UTF-8. If you configure the editor to save correctly it will work, if that is indeed the issue.
Thanks guys. As @maiki said, the error is not in Hugo.
It is about configuration of your text editor (Visual Studio in my case). So I re-saved all files with utf-8 and it is working correctly