浏览代码

Try declaring the charset as utf-8

master
duncan.parkes 16 年前
父节点
当前提交
1f1e52716a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      python_scrapers/CGITemplate

+ 1
- 1
python_scrapers/CGITemplate 查看文件

@@ -26,6 +26,6 @@ parser = %(module)s.%(parser)s(authority_name, authority_short_name, base_url)
xml = parser.getResults(day, month, year)


print "Content-Type: text/xml" # XML is following
print "Content-Type: text/xml; charset=utf-8" # XML is following
print
print xml.encode("utf-8") # print the xml

正在加载...
取消
保存