数据库:PostgreSQL 9.2
延迟工作(3.0.5)
延迟的作业活动记录(0.4.4)
当我尝试运行rake任务时,rake被终止:
"invalid byte sequence in UTF-8 (argument error)"
我不知道这是什么意思。
由于调试起来可能真的很困难,任何建议都会提醒我:可能我需要重新安装一些东西,尝试另一个gem,或者任何东西。
提前谢谢。
[Worker(host:HP-�� pid:4768)] Starting job worker
rake aborted!
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:16:in `block in trace_on': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:14:in `map'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:14:in `trace_on'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:328:in `trace'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:183:in `display_error_message'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:169:in `rescue in standard_exception_handling'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:159:in `standard_exception_handling'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
from C:/Ruby193/bin/rake:23:in `load'
from C:/Ruby193/bin/rake:23:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
最佳答案
鲁比1.9.3,对吧?
在Rakefile(以及任何带有非ascii字符的文件)的顶部,包括以下内容:
# encoding: utf-8
关于ruby-on-rails - 延迟的工作:无法执行 rake 工作:工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16310321/