Tried this:
import unicodedata

@line 237
_TM = ''.join((c for c in unicodedata.normalize('NFD', TM.group(0)) if 
unicodedata.category(c) != 'Mn'))

and then call txt2timestamp with _TM instead of TM.group(0)


---

** [bugs:#1482] archivebot.py doesn't support unicode month names**

**Status:** open
**Created:** Sat Jun 30, 2012 05:50 PM UTC by Anonymous
**Last Updated:** Fri Aug 30, 2013 08:17 AM UTC
**Owner:** nobody

archivebot.py doesn't work well with languages such as Turkish which has some 
months with unicode characters. Namely:

2 Şubat
4 Mayıs
8 Ağustos
9 Eylül
11 Kasım
12 Aralık


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/pywikipediabot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/pywikipediabot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to