# How do i fix Utf-8 Error

**URL:** https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006
**Category:** JupyterHub
**Tags:** community
**Created:** [April 5, 2024, 3:59pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006 "2024-04-05T15:59:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Miles-D-R](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Miles-D-R](https://discourse.jupyter.org/u/Miles-D-R)
#### Post date: [April 5, 2024, 3:59pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006/1 "2024-04-05T15:59:10Z")

</div>

Hi everyone!  
I have an issue with loading a cvs file on my jupiter notebook.  
I just upgrader it from version 6 to V7 and trying to read the file an error occured.  
Please how do i fix, unicodeDecodeError: ‘utf-8’ code can’t decode byte 0x89 in position 10: invalid start byte

---

<div class="post-metadata">

### Author: ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)
#### Post date: [April 5, 2024, 4:23pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006/2 "2024-04-05T16:23:26Z")

</div>

> [@Miles-D-R](#):
>
> I just upgrader it from version 6 to V7 and trying to read the file an error occured.

I doubt it was that alone that is causing this. There was probably some other update, too.  
It usually means you have to specify the encoding when trying to read it, like [here](https://stackoverflow.com/a/73948137/8508004) or [here](https://saturncloud.io/blog/how-to-fix-the-pandas-unicodedecodeerror-utf8-codec-cant-decode-bytes-in-position-01-invalid-continuation-byte-error/) or [here](https://medium.com/@anala007/dealing-with-the-unicodedecodeerror-in-pandas-when-reading-csv-files-edc4987bf68b) or [here](https://community.openai.com/t/how-to-fix-unicodedecodeerror-on-the-openai-data-preparation-tool/15509). And maybe if you are already doing that, it isn’t quite the correct encoding? However, you provide no code or data to help us really know what is going on or help you with practical advice?  
Anyway, can you provide a toy example will at least the 10th position of some sort large intact since that is the root cause, it seems?

And this is probably not a Jupyter issue. Did you try running the same code in a Python interpreter/console or as a traditional Python script? I suspect if you ran it in the same environment you’d have the same issue regardless of if Jupyter is involved or not.

---

<div class="post-metadata">

### Author: ![Miles-D-R](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Miles-D-R](https://discourse.jupyter.org/u/Miles-D-R)
#### Post date: [April 5, 2024, 5:49pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006/3 "2024-04-05T17:49:24Z")

</div>

My special thanks to you sir, i appreciate your effort .  
earlier on i tried it on pycharm IDE same error code, i have use ‘utf-16’ and ‘ISO-8859-1’ it did not work, i did a little findings, it was the csv that had 5 rows #comments of instructions, so i skipped the rows with comments.  
Thanks again sir.

---

<div class="post-metadata">

### Author: ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)
#### Post date: [April 5, 2024, 6:36pm UTC](https://discourse.jupyter.org/t/how-do-i-fix-utf-8-error/25006/4 "2024-04-05T18:36:10Z")

</div>

Pandas `.read_csv()` has a `skiprows` setting you can include and provide details in order to skip things like that. See `skiprows` in [`pandas.read_csv` documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html).
