I am using Rails 3.2.13 and ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] in CentOS 5.6 . When i run db:seed process i got the following error message
rake aborted!
invalid byte sequence in UTF-8
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/core_ext/object/blank.rb:105:in `=~'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/core_ext/object/blank.rb:105:in `!~'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/core_ext/object/blank.rb:105:in `blank?'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activemodel-3.2.13/lib/active_model/errors.rb:255:in `block in add_on_blank'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activemodel-3.2.13/lib/active_model/errors.rb:253:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activemodel-3.2.13/lib/active_model/errors.rb:253:in `add_on_blank'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activemodel-3.2.13/lib/active_model/validations/presence.rb:8:in `validate'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:310:in `_callback_before_2997'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:407:in `_run__3451238938034873984__validate__3894789870199871463__callbacks'
blank.rb line no : 105 contains self !~ /[^[:space:]]/
. I tried # encoding: utf-8
but it's never solve the issue. Any other solutions to solve this issue...