# Invalid UTF8 detected in String

**URL:** <https://matillioncommunity.discourse.group/t/invalid-utf8-detected-in-string/1421>\
**Category:** Matillion ETL\
**Created:** [September 1, 2021, 10:25am UTC](https://matillioncommunity.discourse.group/t/invalid-utf8-detected-in-string/1421 "2021-09-01T10:25:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Akshay](https://matillioncommunity.discourse.group/u/Akshay)\
**Post date:** [September 1, 2021, 10:25am UTC](https://matillioncommunity.discourse.group/t/invalid-utf8-detected-in-string/1421/1 "2021-09-01T10:25:40Z")

</div>

I am unable to load a csv into a Snowflake Table via Matillion. The job throws an error as Invalid UTF8 detected in String. I have also tried to change the encoding type as ISO88591 (after i googled the error) but still unable to make the job run successfully. Any leads on what could be the issue?

---

<div class="post-metadata">

**Author:** ![DataGuy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@DataGuy](https://matillioncommunity.discourse.group/u/DataGuy)\
**Post date:** [September 1, 2021, 1:18pm UTC](https://matillioncommunity.discourse.group/t/invalid-utf8-detected-in-string/1421/2 "2021-09-01T13:18:52Z")

</div>

[@Akshay](https://matillioncommunity.discourse.group/u/Akshay)​ - Not sure which operating system the files are on, but if they are on Linux/Unix you may want to try a grep to see find the invalid UTF8 characters and see if they are junk or actual data. This Stack Overflow has an example: https://stackoverflow.com/questions/29465612/how-to-detect-invalid-utf8-unicode-binary-in-a-text-file.

---

<div class="post-metadata">

**Author:** ![gjohnson3](https://avatars.discourse-cdn.com/v4/letter/g/9d8465/32.png) [@gjohnson3](https://matillioncommunity.discourse.group/u/gjohnson3)\
**Post date:** [March 13, 2023, 7:26pm UTC](https://matillioncommunity.discourse.group/t/invalid-utf8-detected-in-string/1421/3 "2023-03-13T19:26:46Z")

</div>

Had the same issue just now and switching to the ISO 88591 encoding type worked.
