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

Nir Soffer <[email protected]> Sat, 18 Dec 2004 15:07:09 +0200
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
On 18 Dec, 2004, at 6:23, [email protected] 
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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/