Permalink
Browse files

Merge pull request #10407 from NARKOZ/encoding-constant

Use constant for encoding
  • Loading branch information...
2 parents 09ac177 + b0f1cd8 commit 8a7c2e1cdff094da549be2b4ee3c04aec1c63d5a @carlosantoniodasilva carlosantoniodasilva committed May 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/parameters.rb
@@ -65,7 +65,7 @@ def normalize_encode_params(params)
new_hash = {}
params.each do |k, v|
- 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
new_hash[new_key] =
case v
when Hash

0 comments on commit 8a7c2e1

Please sign in to comment.