Ver código fonte

Try declaring the charset as utf-8

import/raw
duncan.parkes 16 anos atrás
pai
commit
797cedf1d3
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      trunk/python_scrapers/CGITemplate

+ 1
- 1
trunk/python_scrapers/CGITemplate Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar