diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 15:06:16 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 15:06:16 -0700 |
commit | 869c9673c67b055dc4115223635d6bd396fc69e0 (patch) | |
tree | f06a68d451d2cec73a7e28b58286c7b48e083d46 /lib | |
parent | 51a51d2d67dbbe749901f91ed9c1611543943d98 (diff) | |
download | ffi-yajl-869c9673c67b055dc4115223635d6bd396fc69e0.tar.gz |
derp, really force to utf8, really check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ffi_yajl/encoder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi_yajl/encoder.rb b/lib/ffi_yajl/encoder.rb index 8c6dce6..a678221 100644 --- a/lib/ffi_yajl/encoder.rb +++ b/lib/ffi_yajl/encoder.rb @@ -41,7 +41,7 @@ module FFI_Yajl # call either the ext or ffi hook str = do_yajl_encode(obj, yajl_gen_opts, opts) # we can skip cleaning the whole string for utf-8 issues if we have yajl validate as we go - str.encode("utf-8", "binary", :undef => :replace) unless yajl_gen_opts[:yajl_gen_validate_utf8] + str.encode!("utf-8", "binary", :undef => :replace) unless yajl_gen_opts[:yajl_gen_validate_utf8] str end |