2013/6/8 Cédric Boutillier <[email protected]>: > It is not a bug in json. It is caused be the way Ruby 1.9 guesses the > encoding of data it reads. You just need to tell explicitly Ruby that > those data should be considered as being encoded in UTF-8. > > The following patch will do the work: > > --- a/spec/parser_spec.rb > +++ b/spec/parser_spec.rb > @@ -1,3 +1,7 @@ > +if defined? Encoding > + Encoding.default_external = "UTF-8" > +end > + > require "spec_helper" > require "json" > > Cheers, > > Cédric
Thanks! it bundles http-parser and http-parser-java in ext/ruby_http_parser/vendor/ I guess I will have to remove these and package http-parser as a separate package. It will need some work to shape it in a package-able form I guess. -- പ്രവീണ് അരിമ്പ്രത്തൊടിയില് You have to keep reminding your government that you don't get your rights from them; you give them permission to rule, only so long as they follow the rules: laws and constitution. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CAOo+eVoTrzAk0ZBHiVW4rv8w-cweDVQ9+bGqAQ3P6Ld8dJRq=a...@mail.gmail.com

