Skip to content

Commit

Permalink
use codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshinils committed Sep 5, 2020
1 parent e574a42 commit b149397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from models.programme import Programme
from models.channelName import ChannelName
from models.tvGuide import TvGuide
import codecs

from datetime import datetime

Expand Down Expand Up @@ -57,7 +58,7 @@ def url_for(where, filename):

guideHtmlString = template.render(guide=guide, url_for=url_for)

f = open("guide.html", "w")
f = codecs.open("guide.html", "w", "utf-8")
f.write(guideHtmlString)
f.close()

Expand Down

0 comments on commit b149397

Please sign in to comment.