Explorar el Código

Try declaring the charset as utf-8

master
duncan.parkes hace 16 años
padre
commit
1f1e52716a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      python_scrapers/CGITemplate

+ 1
- 1
python_scrapers/CGITemplate Ver fichero

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

Cargando…
Cancelar
Guardar