Description

TypeError: decoding Unicode is not supported

Occurs in decodePageName in request.py, when using the ISAPI extension for IIS and MoinMoin 1.5 Beta. Code calls

page = unicode(page, config.charset, 'replace')

But 'page' is already unicode, and the call errors. I have wrapped it in a "if not type(page) == type(u""):" and it works around it...

Steps to reproduce

  1. Install the MoinMoinBeta Release

  2. Install the ISAPI extension for IIS
  3. Visit any wiki page.

Example

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Workaround

Discussion

Note that this ISAPI patch is not supported by our team. Please file this bug at the author's page.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/UnicodeErrorWithISAPIAndMoinMoinBeta (last edited 2007-10-29 19:15:38 by localhost)