1 Aug 2007 14:05
Re: [Pywikipedia-l] UnicodeError: ASCII [decoding, encoding] error: ordinal not in range(128)
Merlijn van Deen <valhallasw <at> arctus.nl>
2007-08-01 12:05:00 GMT
2007-08-01 12:05:00 GMT
> textForm = """%(municName)s è un [[Comuni della Svezia|comune]] > [[Svezia|svedese]] situato nella [[Contee della Svezia|contea]] di > %(countyName)s.""" I suppose textForm needs to be u"""(...)""" then, but I am not completely sure. And instead of using your own regexps to find templates and their parameters, use page.templatesWithParams() and process that. I'm not completely sure what you want to do though. --valhallasw (yes, again, reply instead of reply to all >_<)
RSS Feed