Feature #40190
closedStop appending the utf8 checkmark parameter to form URLs
0%
Description
Ruby on Rails appends the "utf8=✓" parameter to form URLs. I propose to remove this parameter by setting config.action_view.default_enforce_utf8
to false
.
https://guides.rubyonrails.org/v7.1/configuring.html#config-action-view-default-enforce-utf8
The parameter is added to prevent older versions of Internet Explorer from encoding UTF-8 strings with Latin1. But Microsoft ended the support for Internet Explorer in 2021 and Redmine also dropped support for Internet Explorer in Redmine 5.0 (#34978). So, I believe the "utf8=✓" parameter is no longer necessary.
What is the _snowman param in Ruby on Rails 3 forms for? - Stack Overflow
Removing the "utf8=✓" parameter has the following benefits:
- URLs will be a bit cleaner
- The code to handle "utf8=✓" can be removed
- Problems caused by the parameter such as #31831 will never occur
Files
Related issues
Updated by Go MAEDA 11 months ago
- Related to Defect #31831: Back url parse in validation added
Updated by Marius BĂLTEANU 10 months ago
- Status changed from New to Resolved
- Target version set to 6.0.0
- Resolution set to Fixed
Committed, thanks! It is a nice cleanup!