Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF8 with MoinMoin and Python 2.7 #14

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

UTF8 with MoinMoin and Python 2.7 #14

GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install MoinMoin
2. Configure a wiki(farm)
3. Go to any page with non-ASCII characters in name (e.g. a localized help 
page, HilfeFürAnfänger)

What is the expected output? What do you see instead?
Expected to see the page, instead gives page not found showing the name with 
wrong character set, giving a suggestion of the wanted page as a similar page, 
cannot go there either.

What version of the product are you using? On what operating system?
ISAPI_WSGI 0.4.2, Python 2.7, MoinMoin 1.9.7, Windows Server 2012, IIS8

Please provide any additional information below.
Seems to be fixable with this change:

    def _get_variable_py2k(self, key):
        # py2k - just use normal string objects.
        value = self.ecb.GetServerVariable(key)
        u_value = None
        try:
            u_value = self.ecb.GetServerVariable('UNICODE_' + key).encode("utf-8")
        except:
            pass            
        return u_value or value


Original issue reported on code.google.com by mickut on 1 Sep 2013 at 7:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant