This project is archived and is in readonly mode.

#3989 ✓invalid
ahe

Add magic encoding comment to generated files

Reported by ahe | February 18th, 2010 @ 03:02 PM

Hi,

In a brand new Rails 3.0.0.beta application, I created the following controller :

class TestController < ApplicationController
  
  def index
    @test = "héhé"
  end

end

But I get the following error when I try to access it :

/Users/antho/workspace/bugchar/app/controllers/test_controller.rb:4: invalid multibyte char (US-ASCII)
/Users/antho/workspace/bugchar/app/controllers/test_controller.rb:4: invalid multibyte char (US-ASCII)
/Users/antho/workspace/bugchar/app/controllers/test_controller.rb:4: syntax error, unexpected $end, expecting keyword_end
    @test = "héhé"

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.8.0]
Rails 3.0.0.beta

Any ideas?

Thanks,

Anthony

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages