I'm using the Curb gem (https://github.com/taf2/curb) to get the HTML of a page that has special characters:
http = Curl.get("http://www.baidu.com/")
puts http.body_str
http.body_str.encoding
is ASCII-8BIT. How do get the the body_str
as UTF-8 without having to convert it after the fact?