# Problem with unicode

**URL:** <https://discuss.elastic.co/t/problem-with-unicode/102422>\
**Category:** Logstash\
**Created:** [October 2, 2017, 10:03am UTC](https://discuss.elastic.co/t/problem-with-unicode/102422 "2017-10-02T10:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwt](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cwt](https://discuss.elastic.co/u/cwt)\
**Post date:** [October 2, 2017, 10:03am UTC](https://discuss.elastic.co/t/problem-with-unicode/102422/1 "2017-10-02T10:03:00Z")

</div>

Hi all,  
How can I avoid such messages:

> [2017-10-02T12:57:26,652][WARN][logstash.codecs.plain] Received an event that has a different character encoding than you configured. {:text=\>"\<118\>Oct 2 09:54:27 fw01-ips connection: Protocol: UDP, SrcIP: 172.16.19.150, DstIP: 192.112.36.4, SrcPort: 54281, DstPort: 53, Client: DNS, ApplicationProtocol: DNS, InitiatorPackets: 1, ResponderPackets: 1, InitiatorBytes: 74, ResponderBytes: 1143, DNSQuery: \x987\xEE\x87\xFB\u007F, DNSRecordType: an authoritative name server, DNSResponseType: No Error, DNS\_TTL: 518400", :expected\_charset=\>"UTF-8"}  
> [2017-10-02T12:57:26,652][WARN][logstash.codecs.plain] Received an event that has a different character encoding than you configured. {:text=\>"\<118\>Oct 2 09:54:27 fw01-ips connection: Protocol: UDP, SrcIP: 172.16.19.150, DstIP: 192.33.4.12, SrcPort: 54281, DstPort: 53, Client: DNS, ApplicationProtocol: DNS, InitiatorPackets: 1, ResponderPackets: 1, InitiatorBytes: 74, ResponderBytes: 1143, DNSQuery: \x98\xE7\xE2\xBC\u000E\u007F, DNSRecordType: an authoritative name server, DNSResponseType: No Error, DNS\_TTL: 518400", :expected\_charset=\>"UTF-8"}

I think that **DNSQuery** is a reason of this error.

---

<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:** [October 30, 2017, 10:03am UTC](https://discuss.elastic.co/t/problem-with-unicode/102422/2 "2017-10-30T10:03:04Z")

</div>

Closed on October 30, 2017, 10:03am UTC

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