I thought ruby 2 already dealt with it properly, but, anyways, you can try
and add

#encoding: UTF-8

on the top of your ruby file and see if it helps.


2013/11/23 Ankur Kumar <specialankur / gmail.com>

>
> I am getting this error while starting server. Can someone help me debug
> the cause?
>
> $ rails s
>
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/rail=
tie.rb:3:in
> `require':
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.15/lib/*acti=
ve_support/inflector.rb:1:
> invalid multibyte char (UTF-8) (SyntaxError)*
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/rail=
tie.rb:3:in
> `<top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/engi=
ne.rb:1:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/engi=
ne.rb:1:in
> `<top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/plug=
in.rb:1:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/plug=
in.rb:1:in
> `<top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/appl=
ication.rb:3:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/appl=
ication.rb:3:in
> `<top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails.rb:1=
0:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails.rb:1=
0:in
> `<top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/all.=
rb:1:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/all.=
rb:1:in
> `<top (required)>'
>  from /code/rails_projects/bigb1/config/application.rb:3:in `require'
>  from /code/rails_projects/bigb1/config/application.rb:3:in `<top
> (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/comm=
ands.rb:53:in
> `require'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/comm=
ands.rb:53:in
> `block in <top (required)>'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/comm=
ands.rb:50:in
> `tap'
>  from
> /home/ankur/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.15/lib/rails/comm=
ands.rb:50:in
> `<top (required)>'
>  from script/rails:6:in `require'
> from script/rails:6:in `<main>'
>
> --
> Regards,
> Ankur
>
>


--=20
Thyago Barbosa Rodrigues [Natal-RN/Brasil]

"Who loves not wine, women and song,
remains a fool his whole life long"
     (Martin Luther [Martinho Lutero], Te=F3logo Alem=E3o)

"Phantasie ist wichtiger als Wissen, denn Wissen ist begrenzt." (Albert
Einstein)