Pyramid plugin for making a best effort to deal with bizarre query strings.
Query strings should only ever contain UTF-8 encoded text.
However, it’s possible using some web browsers to submit forms or enter URLs containing other encodings.
This plugin registers a tween that uses UnicodeDammit from beautifulsoup4 to make a best effort to properly recognize these query strings.
- Include pyramid_unicodedammit using either the pyramid.includes configuration file setting or config.include('pyramid_unicodedammit')
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.