Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

r1.9 - [error] invalid byte sequence in US-ASCII #12

Closed
pschyska opened this issue Dec 2, 2010 · 3 comments
Closed

r1.9 - [error] invalid byte sequence in US-ASCII #12

pschyska opened this issue Dec 2, 2010 · 3 comments

Comments

@pschyska
Copy link

pschyska commented Dec 2, 2010

I'm getting invalid byte sequence in US-ASCII which is a sign for missing magic encoding comment in some source file. unfortunateley i can't see the stack trace to i dont know which file it is.
There should be a line
# -- encoding : utf-8 --
as the first line in every source file as a requirement for ruby-1.9.

Thanks,

Paul

@bguthrie
Copy link
Contributor

bguthrie commented May 5, 2011

I've been poking around and I can't replicate this. Also, I haven't been able to find any background on the encoding requirement in Ruby 1.9. I'm using 1.9 to run CC.rb locally and I haven't run into any trouble with it - can you still replicate the problem?

@betarelease
Copy link
Contributor

We should close this cause according to Yehuda Katz (http://yehudakatz.com/2010/05/17/encodings-unabridged/)
"When using Rails 3.0 with Ruby 1.9.2-final, you will generally not have to care about encodings."

Which is why you are able to reproduce the problem either.

@bguthrie
Copy link
Contributor

Ahh, I didn't see that article before. Thanks for the heads up, Sudhindra. Closing this one out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants