Rails invalid multibyte char us-ascii syntaxerror

rails invalid multibyte char us-ascii syntaxerror

There is no configuration at the moment, and I'm not sure what we could actually do. I see the same declaration all throughout Rails' own tests. Try posting it into a StackOverflow blank for example, and SO will start acting weird. Remove the strange spaces and tabs and newlines. Again, just pasting the. (irb):7: invalid multibyte char (UTF-8) (irb):7: syntax error, unexpected $end. The end goal is to wind up with these things being changed to either ASCII.

Rails invalid multibyte char us-ascii syntaxerror - really. agree

invalid multibyte char (US-ASCII) (SyntaxError)

description

Hey there,

With beta10, rails3.beta3 and ruby-1.9.2-preview3 when I have portuguese strings in my specs, I get this error unless I declare # coding: utf-8 in the top of each spec file.

Am I missing something I should configure?

Thanks, Marcelo

discussion #1

There is no configuration at the moment, and I'm not sure what we could actually do. I see the same declaration all throughout Rails' own tests, so I'm guessing it's a generally unsolved problem. If there is a way, I'll be happy to add it.

discussion #2

Hey David, after some research I also guess there's no way around it. Please feel free to close the issue if you want to. Thanks for your attention.

discussion #3

Thanks for doing the research.

discussion #4

I found work around for it - add to head of file with spec next line: # encoding: UTF-8

discussion #5

I found this very useful

Project: rspec-rails

About this topic(invalid multibyte char (US-ASCII) (SyntaxError)), We found more information here, check out the link https://github.com/rspec/rspec-rails/issues/66

FOCUS ON FINDING GREAT DEVELOPER CONTENT (Collection and Share based on the CC Protocol.)

f %>   <div class="row">     <div class="col-md-6">       <div class="form-group">         <%= f.input :address_line1, label: "Country", collecti

Read more