cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl with incorrectly encoded html

From: wsu_cic <wsu_cic_at_yahoo.com>
Date: Sun, 20 Dec 2009 20:50:50 -0800 (PST)

Hi, I am trying to access www.mitbbs.com. The site mainly uses charset 'gb2312' but with some wrongly encoded characters. 'curl http://www.mitbbs.com' outputs weird content. Is there a way to set the charset used to decode the returned content? If I used IE to download the page and 'iconv -f gb18030 -t utf-8 downloaded-file', the content is printed correctly.

thanks.

      

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-21