Description
Describe the bug...
Steps to reproduce
After upgrading from 1.8.2 to 1.8.3, all kind of searches are broken and produces a traceback. It happens with FindPage as well as pages like CategoryHomepage.
- [Added later] On second thought: At about the same time as I upgraded, I also moved configuration from a single wiki to a farm. I still believe this to be a bug, but it might have to do with my farm configuration.
Example
The page is in Danish, but you will find a menuitem called FindPage in the upper right corner ;-).
- Try searching for something - no matter what.
Component selection
- general
Details
MoinMoin Version |
1.8.3 |
OS and Version |
openSUSE 11.1 / SLES 10 |
Python Version |
2.6 / 2.4.2 |
Server Setup |
Running mod_python in both instances |
Server Details |
File system supports unicode |
Language you are using the wiki in (set in the browser/UserPreferences) |
Danish |
Workaround
Discussion
That traceback looks like you have non-utf-8 content on your wiki pages. Wiki page content needs to be valid utf-8.
That doesn't mean that MoinMoin shouldn't handle that, i think. str.decode() (and other decode/encode methods) has option, which determines what to do with wrong characters. Usually, i use value "replace" — it will produce «�» («replacement character», U+FFFD) for unknown (improper) characters. Other acceptible value — «ignore». It will drop unknown characters, but anyway it's better than return traceback. Also, it's possible to overload this method (comewhere in codecs, i suppose) to call it with proper parameters on early initialization stage, to eliminate need of modifying decode/encode calls all over the code. -- EugeneSyromyatnikov 2009-10-04 14:58:11
The css on your testwiki is on the wrong url it tries http://test.sporskiftet.dk/moin_static184/sporskiftet/css/common.css
Plan
- Priority:
- Assigned to:
- Status: