Permalink
Browse files

Merge pull request #10407 from NARKOZ/encoding-constant

Use constant for encoding
  • Loading branch information...
1 parent d5a321d commit 30dcd487837013e13c8d31640d179ba03f42c5a9 @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 30dcd48

Please sign in to comment.