|
|
|
@ -53,6 +53,9 @@ _month_names = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def htmlize(text): |
|
|
|
|
"""Convert a normal text to the format required by Twitter (url-encoded |
|
|
|
|
and UTF-8 encoded.""" |
|
|
|
|
# XXX: UTF-8 part is not working as it should, sadly. |
|
|
|
|
if not isinstance(text, unicode): |
|
|
|
|
text = unicode(text, 'utf-8') |
|
|
|
|
# hex_char = (lambda x: '%' + hex(x)[2:].rjust(2, '0').upper()) |
|
|
|
|