add the magic header encoding: utf-8 in the string interpolation to be sure all is utf-8

Fixes #3718
This commit is contained in:
Pere Urbon-Bayes 2015-08-11 18:08:20 +02:00 committed by Jordan Sissel
parent f2713910bf
commit 2b6485f28e

View file

@ -1,3 +1,5 @@
# encoding: utf-8
require "thread_safe"
require "forwardable"
@ -108,7 +110,7 @@ module LogStash
case value
when nil
"%{#{@key}}".encode(Encoding::UTF_8)
"%{#{@key}}"
when Array
value.join(",")
when Hash