Skip to content

Commit

Permalink
set default_encoding for restcouch
Browse files Browse the repository at this point in the history
  • Loading branch information
ixixi committed Feb 4, 2012
1 parent eb34ffd commit 84779f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fluent-plugin-couch.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{fluent-plugin-couch}
s.version = "0.3.2"
s.version = "0.3.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Yudai Odagiri}]
s.date = %q{2012-02-01}
s.date = %q{2012-02-04}
s.email = %q{ixixizko@gmail.com}
s.extra_rdoc_files = [
"README.rdoc"
Expand Down
4 changes: 3 additions & 1 deletion lib/fluent/plugin/out_couch.rb
Expand Up @@ -20,9 +20,11 @@ class CouchOutput < BufferedOutput

def initialize
super
Encoding.default_internal = 'UTF-8'

require 'msgpack'
Encoding.default_internal = 'UTF-8'
require 'couchrest'
Encoding.default_internal = 'ASCII-8BIT'
end

def configure(conf)
Expand Down

0 comments on commit 84779f8

Please sign in to comment.