diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-05 13:46:49 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-05 13:46:49 -0800 |
commit | 13b7548f0662b9d402ce0805fa452b28cde1d475 (patch) | |
tree | c66b86a5abd35fa8f3884888a0e4c3bfc2e81800 /lib/ffi_yajl/encoder.rb | |
parent | f5809701af8d4f3b52452ea1c943dc97b9a65da6 (diff) | |
download | ffi-yajl-13b7548f0662b9d402ce0805fa452b28cde1d475.tar.gz |
trying to fix 1.9/2.0
Diffstat (limited to 'lib/ffi_yajl/encoder.rb')
-rw-r--r-- | lib/ffi_yajl/encoder.rb | 4 |
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 |