def encode_tag(tag):
- return quote(tag.replace(' ', '_'))
+ return quote(tag.replace(' ', '_'), encoding='koi8-r')
def write_template(level, year, month, day, titles, tags=None):
<li>��������� �������� �����������: NOT > AND > OR. ������ '()' ��������� ���������� ���������.</li>
</ul>
<p class="small">
-������� ���������: linux - �������ģ� ���������������
-�� �������� linux.html; linux&!audio - ������ ������ � ������� ���� ���
-linux � ��� ���� audio; linux and not audio - �� �� �����.
+������� ���������: Linux - �������ģ� ���������������
+�� �������� Linux.html; Linux&!Debian - ������ ������ � ������� ���� ���
+Linux � ��� ���� Debian; Linux and not Debian - �� �� �����.
</p>
<center>