avsej / gson.rb

Ruby wrapper for google-gson library
Apache License 2.0
10 stars 5 forks source link

Decode behaves weird #3

Open rwz opened 11 years ago

rwz commented 11 years ago
string = "\x82\xAC\xEF"
Gson::Decoder.new.decode(string) # => "���"

The string is definitely not a valid JSON and one would expect decoder to raise an error instead of doing what Gson is doing here...

rwz commented 11 years ago

Forgot to mention, that I'm using the latest available version for now, which is 0.6.1

sferik commented 10 years ago

This issue is causing MultiJSON specs to fail on JRuby. Any update on this?