We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f8b7c commit b0f1cd8Copy full SHA for b0f1cd8
actionpack/lib/action_dispatch/http/parameters.rb
@@ -65,7 +65,7 @@ def normalize_encode_params(params)
65
66
new_hash = {}
67
params.each do |k, v|
68
- new_key = k.is_a?(String) ? k.dup.force_encoding("UTF-8").encode! : k
+ new_key = k.is_a?(String) ? k.dup.force_encoding(Encoding::UTF_8).encode! : k
69
new_hash[new_key] =
70
case v
71
when Hash
0 commit comments