fedwiki / wiki-server

Federated Wiki client and server in Node.js
Other
153 stars 35 forks source link

International character can not be page name #42

Closed dosirak closed 10 years ago

dosirak commented 10 years ago

International character can not be page name

WardCunningham commented 10 years ago

Page names appear in two forms: titles and slugs. Titles are intended to be meaningful to people, slugs, computers. The recognition of titles by regular expression is permissive, anything up to right square bracket. The conversion of titles to slugs is much more conservative, A-Z, a-z, 0-9, and - permitted. The code is in the wiki-client repo.

https://github.com/WardCunningham/wiki-client/blob/master/lib/wiki.coffee

If by page name you mean slug, then this is by design. If the actual behavior of the program is other than I describe then I would appreciate an example or a fix. If the slug rules are too conservative then I would like to hear from a thriving international community exactly what better rules would be useful and still computer safe.