diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-13 04:43:41 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-13 04:43:41 -0700 |
commit | 91ffddca57d754f024b90d981acb146a5e9f5ab9 (patch) | |
tree | cf9c165538516314ad2544553adee1bcad9b6f40 /activesupport/lib | |
parent | dbe9fa03dfce54eb2b27341eed924b95e6afbdea (diff) | |
download | rails-91ffddca57d754f024b90d981acb146a5e9f5ab9.tar.gz rails-91ffddca57d754f024b90d981acb146a5e9f5ab9.tar.bz2 rails-91ffddca57d754f024b90d981acb146a5e9f5ab9.zip |
Use Encoding.default_external, not _internal
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/multibyte/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/multibyte/utils.rb b/activesupport/lib/active_support/multibyte/utils.rb index a7e40688de..8e47763d39 100644 --- a/activesupport/lib/active_support/multibyte/utils.rb +++ b/activesupport/lib/active_support/multibyte/utils.rb @@ -5,7 +5,7 @@ module ActiveSupport #:nodoc: if Kernel.const_defined?(:Encoding) # Returns a regular expression that matches valid characters in the current encoding def self.valid_character - VALID_CHARACTER[Encoding.default_internal.to_s] + VALID_CHARACTER[Encoding.default_external.to_s] end else def self.valid_character @@ -58,4 +58,4 @@ module ActiveSupport #:nodoc: end end end -end
\ No newline at end of file +end |