Redundant utf-8 sequence

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:ingsub’
/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:into_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:inencode’
/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:ineach’
/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:into_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:inroute’

Anyone know of a way around this?

thx.

-karl

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Sep 10, 2010, at 10:22 PM, Karl B. wrote:

/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:inmap’
/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:inPOST /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

What’s the string it’s barfing on?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email