# Random utf-8 errors from dataset

**URL:** <https://discuss.huggingface.co/t/random-utf-8-errors-from-dataset/22134>\
**Category:** Intermediate\
**Created:** [August 26, 2022, 7:09am UTC](https://discuss.huggingface.co/t/random-utf-8-errors-from-dataset/22134 "2022-08-26T07:09:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jbmaxwell](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jbmaxwell](https://discuss.huggingface.co/u/jbmaxwell)\
**Post date:** [December 7, 2023, 9:34pm UTC](https://discuss.huggingface.co/t/random-utf-8-errors-from-dataset/22134/9 "2023-12-07T21:34:22Z")

</div>

I’ve moved on from that project, at this point, so unfortunately I can’t give a stack trace. But I will say that I _think_ it was more a data problem than a `datasets` problem. I still see the error with some of the data I’m using now, but I’ve started including `chardet` in my data pipeline, which seems to fix it (though it’s a bit pokey).

---

_[View the full topic](https://discuss.huggingface.co/t/random-utf-8-errors-from-dataset/22134)._
