# Logstash output Chinese garbled

**URL:** <https://discuss.elastic.co/t/logstash-output-chinese-garbled/88646>\
**Category:** Logstash\
**Created:** [June 8, 2017, 2:44am UTC](https://discuss.elastic.co/t/logstash-output-chinese-garbled/88646 "2017-06-08T02:44:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrzhaoatbj](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mrzhaoatbj](https://discuss.elastic.co/u/mrzhaoatbj)\
**Post date:** [June 8, 2017, 2:44am UTC](https://discuss.elastic.co/t/logstash-output-chinese-garbled/88646/1 "2017-06-08T02:44:24Z")

</div>

####hi all, I was troubled by a problem for a long time.  
I made a .mmdb file for fun with the perl writer maxmind provided,  
####there are some chinese words in it,  
it can be read correctly from the terminal with the perl reader like this:

```auto
location {
        accuracy_radius 20,
        latitude 10,
        longitude 11,
        time_zone "卧室"
    }

```

what confuses me is that when I use the mmdb file I made with logstash, the logstash std output made the chinese words garbled like this:

```auto
location {
        accuracy_radius 20,
        latitude 10,
        longitude 11,
        time_zone "'æ å®'"
    }

```

....any idea or any conf should I do?

thanks for reading my strange question

---

<div class="post-metadata">

**Author:** ![mrzhaoatbj](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mrzhaoatbj](https://discuss.elastic.co/u/mrzhaoatbj)\
**Post date:** [June 15, 2017, 4:28am UTC](https://discuss.elastic.co/t/logstash-output-chinese-garbled/88646/2 "2017-06-15T04:28:03Z")

</div>

yeah, i decode the file read into the mmdb database with perl utf-8 decoder first, and then it works well!

---

<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:** [July 13, 2017, 4:28am UTC](https://discuss.elastic.co/t/logstash-output-chinese-garbled/88646/3 "2017-07-13T04:28:12Z")

</div>

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