# Encoded Error UTF-8

**URL:** https://forum.mautic.org/t/encoded-error-utf-8/25587
**Category:** Product Support
**Created:** [October 4, 2022, 10:13pm UTC](https://forum.mautic.org/t/encoded-error-utf-8/25587 "2022-10-04T22:13:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![klandry1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klandry1/32/6653_2.png) [@klandry1](https://forum.mautic.org/u/klandry1)
#### Post date: [October 4, 2022, 10:13pm UTC](https://forum.mautic.org/t/encoded-error-utf-8/25587/1 "2022-10-04T22:13:20Z")

</div>

**Your software**  
My Mautic version is: v3.1.2  
My PHP version is: 7.3.27  
My Database type and version is: mysqlnd 5.0.12-dev

**Your problem**  
My problem is: I am trying to upload a .csv file to a segment that I created and am receiving the following error: “The file is not encoded correctly into UTF-8.”

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [October 5, 2022, 5:47pm UTC](https://forum.mautic.org/t/encoded-error-utf-8/25587/2 "2022-10-05T17:47:27Z")

</div>

Try opening the .csv file in Excel (Windows) or Numbers (Mac) and if everything looks in order and good then export it again into .csv to see if that fixes it.

---

<div class="post-metadata">

### Author: ![Nick\_J](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nick_j/32/8369_2.png) [@Nick\_J](https://forum.mautic.org/u/Nick_J)
#### Post date: [October 5, 2022, 8:02pm UTC](https://forum.mautic.org/t/encoded-error-utf-8/25587/3 "2022-10-05T20:02:26Z")

</div>

What is the character set of the MySQL server? UTF-8 Unicode (utf8)

Here is the command to check the character set of your database

```auto
mysql> USE my_database;
mysql> show variables like "character_set_database";

```

---

<div class="post-metadata">

### Author: ![klandry1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klandry1/32/6653_2.png) [@klandry1](https://forum.mautic.org/u/klandry1)
#### Post date: [October 5, 2022, 9:28pm UTC](https://forum.mautic.org/t/encoded-error-utf-8/25587/4 "2022-10-05T21:28:47Z")

</div>

default\_charset UTF-8 UTF-8  
this is the configuration under “Core”
