Przeglądaj źródła

Try declaring the charset as utf-8

master
duncan.parkes 16 lat temu
rodzic
commit
1f1e52716a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      python_scrapers/CGITemplate

+ 1
- 1
python_scrapers/CGITemplate Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz