Fixed unicode fuckup
This commit is contained in:
parent
09868227db
commit
39d3dba634
|
@ -18,10 +18,13 @@ INPUT_RES = 1440
|
||||||
FONT_SIZE = 20
|
FONT_SIZE = 20
|
||||||
TEXT_COLOR = (0, 0, 0)
|
TEXT_COLOR = (0, 0, 0)
|
||||||
|
|
||||||
|
def uniquote(stuff):
|
||||||
|
return quote(stuff.encode('utf-8'))
|
||||||
|
|
||||||
def make_url(year, category, photographer, pid):
|
def make_url(year, category, photographer, pid):
|
||||||
year = quote(year)
|
year = uniquote(year)
|
||||||
category = quote(category)
|
category = uniquote(category)
|
||||||
photographer = quote(photographer)
|
photographer = uniquote(photographer)
|
||||||
pid = pid + 1
|
pid = pid + 1
|
||||||
return u"http://htt-phototeam.de/#&gid=%s/%s/%s&pid=%d" % (year, category, photographer, pid)
|
return u"http://htt-phototeam.de/#&gid=%s/%s/%s&pid=%d" % (year, category, photographer, pid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue