Rev3351, Fix sites with utf8 title
This commit is contained in:
parent
e03731fd24
commit
7048987157
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.6.2"
|
self.version = "0.6.2"
|
||||||
self.rev = 3350
|
self.rev = 3351
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -248,7 +248,7 @@ class UiRequest(object):
|
||||||
template = open(template_path).read()
|
template = open(template_path).read()
|
||||||
for key, val in kwargs.items():
|
for key, val in kwargs.items():
|
||||||
template = template.replace("{%s}" % key, "%s" % val)
|
template = template.replace("{%s}" % key, "%s" % val)
|
||||||
return template
|
return template.encode("utf8")
|
||||||
|
|
||||||
# - Actions -
|
# - Actions -
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue