# Convert Field Data to UTF8 or ISO-8859-1

**URL:** <https://discuss.elastic.co/t/convert-field-data-to-utf8-or-iso-8859-1/226112>\
**Category:** Logstash\
**Created:** [April 1, 2020, 6:24pm UTC](https://discuss.elastic.co/t/convert-field-data-to-utf8-or-iso-8859-1/226112 "2020-04-01T18:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rviega](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@rviega](https://discuss.elastic.co/u/rviega)\
**Post date:** [April 1, 2020, 6:24pm UTC](https://discuss.elastic.co/t/convert-field-data-to-utf8-or-iso-8859-1/226112/1 "2020-04-01T18:24:00Z")

</div>

Hi Everyone,

I would like to convert a field called "subject" to UTF-8 but I wasn't able to do it.

I have configured logstash using charset ISO-8859-1and UTF-8 but Is not working. Here is an example of the data from the field: (notice that it is not readable)

```auto
subject:	=?utf-8?Q?1859=2C=20your=20support=20means=20everything=20to=20us?=

```

The following lines are the config that I have tested but they didn't work:

With ISO-8859-1:

```auto
    input {
      udp { 
        port => xxx
        type => xxx
        codec => plain { charset => "ISO-8859-1" }
      }
    }

```

With UTF-8:

```auto
    input {
      udp { 
        port => xxx
        type => xxx
        codec => plain { charset => "UTF-8" }
      }

```

Help would be greatly appreciated as i'm still a newbie when it comes to logstash, elasticssearch, and kibana, Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 29, 2020, 6:24pm UTC](https://discuss.elastic.co/t/convert-field-data-to-utf8-or-iso-8859-1/226112/2 "2020-04-29T18:24:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
