Closed uralbash closed 9 years ago
For example tag Жириновский, when calling tag.docname it return empty string. I think problem in this line https://github.com/abakan/ablog/blob/master/ablog/blog.py#L34
Жириновский
tag.docname
string = re.sub(r'[^\w\s-]', '', string).strip().lower()
Your example tag worked fine with Python 3. In Python 2, I pass re.UNICODE flag to re.sub function. This should resolve the issue.
re.UNICODE
re.sub
It works, thanks
For example tag
Жириновский
, when callingtag.docname
it return empty string. I think problem in this line https://github.com/abakan/ablog/blob/master/ablog/blog.py#L34