rails/rails — Issue #4362: UTF-8 encoding `seed.rb` by default
Author: Hauleth
Created: 2012-01-06 20:04:12+00:00
State: open

When I wrote `seed.rb` I've get:

rake aborted!
/home/hauleth/workspace/Tori/db/seeds.rb:9: invalid multibyte char (US-ASCII)
/home/hauleth/workspace/Tori/db/seeds.rb:9: invalid multibyte char (US-ASCII)
/home/hauleth/workspace/Tori/db/seeds.rb:9: syntax error, unexpected $end, expecting '}'
Status.create([{:name => "Spółka z ograniczoną odpowiedz...
^

Tasks: TOP => db:seed
(See full trace by running task with --trace)

I must add `# encoding: utf-8` on the top to works.