Skip to content

Commit

Permalink
Merge pull request #2539 from hc-chien/patch-1
Browse files Browse the repository at this point in the history
solve issue when messages contain UTF-8 (CJK)
  • Loading branch information
repeatedly authored Aug 16, 2019
2 parents d3c8766 + 5d9e77d commit 975ca8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/plugin/out_exec_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def write(chunk)
end

def run(io)
io.set_encoding(Encoding::ASCII_8BIT)
case
when @parser.implement?(:parse_io)
@parser.parse_io(io, &method(:on_record))
Expand Down

0 comments on commit 975ca8b

Please sign in to comment.