Add UTF-8 disabling parameter
When testing this website on NCSA Mosiac 2.1.1 for Windows, the application threw error messages because of the UTF-8 parameters and refused to load the page (this did not occur in 2.0a or 1.0, for some reason). Mosaic 3.0 for Windows triggered an illegal operation error every time it tried to load, and I feel like it might be related.
To allow these older browsers to work properly, I should maintain a file of blacklisted user-agents which will not have any UTF-8 related attributes on the page.
This new feature should:
- When a connection is established, check if the browser has UTF-8 disabled in two files (
utf8-blacklist-base.json
andutf8-blacklist-additions.json
) - If the browser is blacklisted, set a variable to false for the template to use
- If the browser is not blacklisted, check for the query parameter
?use_utf8=False
- If present, append the user-agent to
utf8-blacklist-additions.json
, set the template variable, and flash a message to the user that they should submit an Issue on GitLab to get the browser blacklisted upstream - If not present, continue as normal
- If present, append the user-agent to