[Moin-devel] Re: Moin-devel digest, Vol 1 #511 - 6 msgs

Nir Soffer nirs at actcom.net.il
Sat Dec 18 05:08:01 EST 2004


On 18 Dec, 2004, at 6:23, moin-devel-request at lists.sourceforge.net 
wrote:

> This routine does not translate UTF-8 chars e.g. for German Umlauts
> (öäü). It always crashs.
>
> ~  wikiizer = wiki.Parser(string.join(txt,""),request) ; seems to work
> ~  wikiizer.format(formatter) ; crash
>

Note that parser should get unicode text, not utf-8, like most other 
calls in 1.3. The docstrings are not always updated, so if you get 
error, check that your input is unicode. In this case:

text = unicode(text, 'utf-8')

Then pass the text to the parser.

Nir Soffer





More information about the Moin-devel mailing list