mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
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:
parent
f2713910bf
commit
2b6485f28e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue