Enabled UTF-8 support in string functions

This commit is contained in:
Alexey Verkhovsky 2005-01-21 19:00:45 +00:00
parent dce2af06aa
commit f75f5223c3
2 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,5 @@
HEAD: HEAD:
Wiki search handles multibyte (UTF-8) characters correctly
Ported to ActionPack Ported to ActionPack
Madeleine will check every hour if there are new commands in the log or 24 hours have Madeleine will check every hour if there are new commands in the log or 24 hours have
passed since last snapshot, and take snapshot if either of these conditions is true passed since last snapshot, and take snapshot if either of these conditions is true

View file

@ -3,6 +3,9 @@ if RUBY_VERSION < '1.8.1'
exit exit
end end
# Enable UTF-8 support
$KCODE = 'u'
RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') unless defined? RAILS_ROOT RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') unless defined? RAILS_ROOT
RAILS_ENV = ENV['RAILS_ENV'] || 'production' unless defined? RAILS_ENV RAILS_ENV = ENV['RAILS_ENV'] || 'production' unless defined? RAILS_ENV