问问题
711 次
1 回答
3
According to the documentation, the make_file
method in versions of Python before Python3.5 defaulted to a charset of ISO-8859-1, which would not include Arabic.
Further, most browsers are going to see ISO-8859-1 and fallback to ASCII. Thus, you have to use that method in Python3.5 in order to get utf-8 or generate the HTML output that you would like in a different way.
Edit: as of python 3.5.1, though the make_html
method uses default charset utf-8, its brother method make_table
doesn't, so take care using the latter!
于 2015-12-31T18:41:38.390 回答