I am calling to_json on a string using jruby-1.5.2 and json-jruby 1.4.6
and i am receiving the following error:
INFO: ArgumentError - redundant UTF-8 sequence:
/home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoding.rb:68:in
escape' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoding.rb:63:in
gsub’
/home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoding.rb:63:in
escape' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoders/string.rb:3:in
to_json’
/home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoding.rb:79:in
encode' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoding.rb:18:in
encode’
/home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoders/hash.rb:38:in
to_json' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoders/hash.rb:37:in
each’
/home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoders/hash.rb:37:in
map' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/activesupport-2.3.8/lib/active_support/json/encoders/hash.rb:37:in
to_json’
./lib/email_gateway.rb:80:in POST /mailbox/body/?' /home/ubuntu/.rvm/gems/jruby-1.5.2/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
route’
Anyone know of a way around this?
thx.
-karl
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email