# Rasa data validate fail - could not read the file using utf-8 to decode it

**URL:** <https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993>\
**Category:** Rasa Open Source\
**Created:** [May 4, 2022, 3:08pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993 "2022-05-04T15:08:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 3:08pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/1 "2022-05-04T15:08:59Z")

</div>

Hi guys, I want to create an easy bot in order to understand how rasa works (Rasa version 2.8.1 , Rasa sdk version 2.8.0 ).

I removed all utters and intents of the native project after “rasa init”. I create my intents , utters but when I type “rasa data validate” or “rasa train”, this message appears in the terminal:

```auto
FileIOException: Failed to read file 'C:\Users\luigi\Desktop\esempi_rasa\prova\data\nlu.yml', could not read the file using utf-8 to decode it. Please make sure the file is stored with this encoding.

```

How can I solve it?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 4:46pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/2 "2022-05-04T16:46:22Z")

</div>

The question has been already posted and solved here: [Can't run rasa x - Could not read file using the utf-8 coding](http://forum.rasa.com/t/cant-run-rasa-x-could-not-read-file-using-the-utf-8-coding/36572)

Check if the solutions there apply for you.

---

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 8:12pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/3 "2022-05-04T20:12:13Z")

</div>

I’ve seen the topic, but my nlu file is yet .yml so I can’t verify the solution "change the extension from .md to .yml "

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 8:14pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/4 "2022-05-04T20:14:44Z")

</div>

Okay, open the file using VS Code, do you see “UTF-8” in the lower-right corner?

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/8/6805c235227733bbda5e007f4467113ac41a6827.png)

---

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 8:21pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/5 "2022-05-04T20:21:15Z")

</div>

Yes, I see UTF-8 in the right corner

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 8:22pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/6 "2022-05-04T20:22:49Z")

</div>

Try executing `set PYTHONUTF=1` in the command prompt and run the command again

---

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 8:24pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/7 "2022-05-04T20:24:52Z")

</div>

Same

 ![problem utf-8](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/0/3061c07acade255650eb8b952e6d6325ccf60b03.png)

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 8:25pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/8 "2022-05-04T20:25:28Z")

</div>

Does the same error appear on a fresh project (`rasa init`)?

---

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 8:29pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/9 "2022-05-04T20:29:03Z")

</div>

I just trained a new rasa project without any problem.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 8:29pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/10 "2022-05-04T20:29:45Z")

</div>

Okay, please try copying the **contents** of your files (not the files themselves) from the old project to the new one and try again

---

<div class="post-metadata">

**Author:** ![luisshinken](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@luisshinken](https://forum.rasa.com/u/luisshinken)\
**Post date:** [May 4, 2022, 8:33pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/11 "2022-05-04T20:33:56Z")

</div>

Thank you so much, now I validate data and another error appears : the error was that I wrote in stories: “slow\_was\_set” instead of “sloT\_was\_set” … thank you so much chris

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 4, 2022, 8:34pm UTC](https://forum.rasa.com/t/rasa-data-validate-fail-could-not-read-the-file-using-utf-8-to-decode-it/52993/12 "2022-05-04T20:34:26Z")

</div>

Happy to help! 🙂 Glad you got it working
