[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ruby-em-http-request upload



2013/6/8 Cédric Boutillier <cedric.boutillier@gmail.com>:
> 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.


Reply to: