On Mon, Dec 24, 2012 at 11:34 AM, iMath <redstone-c...@163.com> wrote: > how to detect the character encoding in a web page ? > such as this page > > http://python.org/
You read part-way into the page, where you find this: <meta http-equiv="content-type" content="text/html; charset=utf-8" /> That tells you that the character set is UTF-8. ChrisA -- http://mail.python.org/mailman/listinfo/python-list