Skip to content
Browse files

use constant for encoding

  • Loading branch information...
1 parent f7f8b7c commit b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22 @NARKOZ NARKOZ committed May 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/parameters.rb
View
2 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 b0f1cd8

Please sign in to comment.
Something went wrong with that request. Please try again.