Unicode issue with Python v3.3
nagia.retsina at gmail.com
nagia.retsina at gmail.com
Thu Apr 11 06:54:06 EDT 2013
Of course here is how it look like:
if page.endswith('.html'):
f = open( "/home/nikos/www/" + page, encoding="utf-8" )
htmldata = f.read()
htmldata = htmldata % (quote, music)
counter = ''' <center>
<a href="mailto:support at superhost.gr"> <img src="/data/images/mail.png"></a>
<table border=2 cellpadding=2 bgcolor=black>
<td><font color=lime>Αριθμός Επισκεπτών</td>
<td><a href="http://superhost.gr/?show=log&page=%s"><font color=yellow> %d </td>
</table><br>
''' % (page, data[0])
template = htmldata + counter
print( template )
More information about the Python-list
mailing list