Rails automatically adds a UTF-8 parameter to forms when using form_with
. How can you remove it?
Asked
Active
Viewed 535 times
1

Evrim Persembe
- 497
- 5
- 11
-
Does this answer your question? [Removing "utf8=✓" from Rails 3 form submissions](https://stackoverflow.com/questions/4487796/removing-utf8-from-rails-3-form-submissions) – campeterson Jun 20 '22 at 17:08
2 Answers
1
Set the :skip_enforcing_utf8
option to true
. For example:
<%= form_with(model: @post, url: super_posts_path, skip_enforcing_utf8: true) %>
More information can be found here.

Evrim Persembe
- 497
- 5
- 11
0
In versions of Rails 4.1.8+ you can use:
enforce_utf8: false
See duplicate question here: https://stackoverflow.com/a/28201592/514866

campeterson
- 3,591
- 2
- 25
- 26