# UniDecodeError: 'charmap' codec can't decode byte from Load\_dataset

**URL:** <https://discuss.huggingface.co/t/unidecodeerror-charmap-codec-cant-decode-byte-from-load-dataset/129390>\
**Category:** Beginners\
**Created:** [December 5, 2024, 11:34am UTC](https://discuss.huggingface.co/t/unidecodeerror-charmap-codec-cant-decode-byte-from-load-dataset/129390 "2024-12-05T11:34:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tudi72](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@tudi72](https://discuss.huggingface.co/u/tudi72)\
**Post date:** [December 5, 2024, 11:34am UTC](https://discuss.huggingface.co/t/unidecodeerror-charmap-codec-cant-decode-byte-from-load-dataset/129390/1 "2024-12-05T11:34:17Z")

</div>

Hello,  
I have tried to run the load\_datasets locally by using.

```auto
data = load_dataset(
    "dennlinger/eur-lex-sum",
    "english",
    trust_remote_code=True,
    download_mode="force_redownload", # Ensure fresh download
    # encoding="utf-16",
)

```

However I receive the error  
`UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 3598:`

When I searched online, I figured out it is something to do with the encoding to utf-8. But I am observing they removed the **encoding** parameter from load\_dataset.
