# How to fix the garbled characters in the character data

**URL:** <https://community.exploratory.io/t/how-to-fix-the-garbled-characters-in-the-character-data/2568>\
**Category:** HowTo\
**Created:** [July 21, 2023, 4:18pm UTC](https://community.exploratory.io/t/how-to-fix-the-garbled-characters-in-the-character-data/2568 "2023-07-21T16:18:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1](https://community.exploratory.io/user_avatar/community.exploratory.io/user1/32/11_2.png) [@user1](https://community.exploratory.io/u/user1)\
**Post date:** [July 21, 2023, 4:18pm UTC](https://community.exploratory.io/t/how-to-fix-the-garbled-characters-in-the-character-data/2568/1 "2023-07-21T16:18:37Z")

</div>

If you import data, sometimes you see the character data is garbled like the following. This is because the character encoding of the original data is different from “UTF-8” that Exploratory expects.

 ![image](https://community.exploratory.io/uploads/default/original/2X/5/5bc4ed4a5e82db168a9ca330b5f5f74728014729.png)

You can fix it by converting the character encoding using the `iconv` function. Here is how.

1. Check the original data encoding. You can check the database setting if the data is from the database, or you can check the file if you import from a file. In this example, I know it is “Shift\_JIS”.

2. From the column header menu, choose “Create Calculation” → “Standard”.

 ![image](https://community.exploratory.io/uploads/default/original/2X/e/e8e9d555abb172014384d46e3405e531f93c8201.png)

1. Type in the following comment in the Calculation Editor. Make sure to set the original encoding name for the `from` parameter. The `to` parameter should be always `UTF-8`.

```auto
iconv(Status, from="Shift_JIS", to="UTF-8")

```

 ![image](https://community.exploratory.io/uploads/default/original/2X/a/a5c8b959710d6b7b6709db1f9efd0740724aac0d.png)

It will create a new column with the converted data. If it doesn’t work, probably the original encoding is incorrect. Try a different encoding.

 ![image](https://community.exploratory.io/uploads/default/original/2X/4/44c062f41b3a6488e02a3e5cd0ecfd7e9ce9c3c6.png)
