Description

When trying to use the NewPage macro to create a new page from a template whose name includes an accentuated character, moin is unable to find the correct template:

[[NewPage(ModèleDeBrouillonDeLaGazette,Nouveau brouillon,Gazette Linux/Brouillons)]]

I therefore get the following error message (BUG1):

[Template Mod%C3%A8leDeBrouillonDeLaGazette not found]

Steps to reproduce

  1. Create a Template with a name including an accuentuated character. For example: CaféTemplate.

  2. Create a corresponding NewPage macro. For example:

     [[NewPage(CaféTemplate,Test,WikiSandBox)]]
  3. Use it :)

Example

Details

MoinMoin Version

1.5.4

OS and Version

Debian Linux (Stable)

Python Version

2.3.5

Server Setup

Twisted

Server Details

Language you are using the wiki in French

Workaround

Discussion

BUG1 happens because in querystring template=pagename, the pagename gets double-URL-quoted (should be URL quoted, once only). Strange, I only see a wikiutil.escape() call (but that does only handle <, >, & and " and does not urlquote) - where does the urlquoting happen? Why double?

BUG2 is a configuration issue.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/NewPageFailToUseTemplateWithAnAccentuatedName (last edited 2008-03-23 11:52:14 by ThomasWaldmann)