summaryrefslogtreecommitdiff
path: root/lib/ffi_yajl/encoder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi_yajl/encoder.rb')
-rw-r--r--lib/ffi_yajl/encoder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi_yajl/encoder.rb b/lib/ffi_yajl/encoder.rb
index 14e3801..59450b1 100644
--- a/lib/ffi_yajl/encoder.rb
+++ b/lib/ffi_yajl/encoder.rb
@@ -47,7 +47,7 @@ module FFI_Yajl
if str.respond_to?(:scrub)
str.scrub!
else
- str.encode!("UTF-8", 'binary', undef: :replace, invalid: :replace)
+ str.encode!("UTF-8", undef: :replace, invalid: :replace)
end
end
str
@@ -68,7 +68,7 @@ module FFI_Yajl
if token.respond_to?(:scrub)
token.scrub!
else
- token.encode("utf-8", 'binary', undef: :replace, invalid: :replace)
+ token.encode("utf-8", undef: :replace, invalid: :replace)
end
case status
when 1 # yajl_gen_keys_must_be_strings