# Does Watcher Slack Action support UTF-8?

**URL:** <https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731>\
**Category:** Elasticsearch\
**Created:** [December 21, 2017, 1:01am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731 "2017-12-21T01:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![serive](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serive/32/24801_2.png) [@serive](https://discuss.elastic.co/u/serive)\
**Post date:** [December 21, 2017, 1:01am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731/1 "2017-12-21T01:01:38Z")

</div>

Hi,

I tried slack action of watcher but Non-ASCII character becomes "?".

Elastic stack version: 6.1.0

watcher settings:

```
{
  "trigger": {
    "schedule": {
      "cron": "0 * * * * ?"
    }
  },
  "input": {
    "search": {
      "request": {
        "search_type": "query_then_fetch",
        "indices": [
          "*"
        ],
        "types": ["doc"],
        "body": {
          "query": {
            "match_all": {}
          }
        }
      }
    }
  },
  "condition": {
    "compare": {
      "ctx.payload.hits.total": {
        "gt": 0
      }
    }
  },
  "actions": {
    "send_email": {
      "transform": {},
      "email": {
        "profile": "standard",
        "to": [
          "xxx@xxx.xxx"
        ],
        "subject": "subjectあいうえお",
        "body": {
          "html": "bodyあいうえお"
        }
      }
    },
    "notify-slack": {
      "transform": {},
      "slack": {
        "message": {
          "to": [
            "#elastic-notify"
          ],
          "text": "textあいうえお",
          "attachments": [
            {
              "color": "danger",
              "title": "titleあいうえお",
              "text": "attachmentあいうえお"
            }
          ]
        }
      }
    }
  }
}

```

 ![2017-12-21_094629](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3d68e6371b1596b53393a68246966bd2f6640fac.png)

Email notification works fine.

![2017-12-21_094722](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91194039667305ac0e1210f702255857f664a417.png)

Is there any necessary setting for character encoding for slack action?  
Or, any workaround for this problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 21, 2017, 9:14am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731/2 "2017-12-21T09:14:21Z")

</div>

This is indeed a problem on the watcher side. I am working on a fix.

Thanks for bringing it up!

---

<div class="post-metadata">

**Author:** ![serive](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serive/32/24801_2.png) [@serive](https://discuss.elastic.co/u/serive)\
**Post date:** [December 21, 2017, 9:17am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731/3 "2017-12-21T09:17:23Z")

</div>

Thanks! I'll wait for that.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 8, 2018, 11:26am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731/4 "2018-01-08T11:26:55Z")

</div>

Quick heads-up: The fix for this will be included in the next Elastic Stack release.

---

<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:** [February 5, 2018, 11:27am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731/5 "2018-02-05T11:27:00Z")

</div>

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