# Help with error on project

**URL:** <https://www.ruby-forum.com/t/help-with-error-on-project/115007>\
**Category:** Rails\
**Created:** [September 19, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/help-with-error-on-project/115007 "2007-09-19T17:53:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![katsnelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ba8739/32.png) [@katsnelson](https://www.ruby-forum.com/u/katsnelson)\
**Post date:** [September 19, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/help-with-error-on-project/115007/1 "2007-09-19T17:53:18Z")

</div>

I have this versions of soft -  
Ruby version 1.8.6 (i386-mswin32)  
RubyGems version 0.9.2  
Rails version 1.2.3  
Active Record version 1.15.3  
Action Pack version 1.13.3  
Action Web Service version 1.2.3  
Action Mailer version 1.3.3  
Active Support version 1.4.2

My problem in code that contains string like this (with russian  
language) -

“Ð¿Ñ€Ð¸Ð²ÐµÑ‚ Ð¼Ð¾Ð¹ Ð´Ñ€ÑƒÐ³”

gets this error in some other place, not where russian string:

app/controllers/sites/osp\_ru.rb:40: syntax error, unexpected  
tIDENTIFIER, expecting …

if I comment it - all ok.

Who can tell me where is a reason of the error?

---

<div class="post-metadata">

**Author:** ![katsnelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ba8739/32.png) [@katsnelson](https://www.ruby-forum.com/u/katsnelson)\
**Post date:** [September 19, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/help-with-error-on-project/115007/2 "2007-09-19T18:26:59Z")

</div>

Your description isn’t very… er, descriptive. Maybe it would help if  
you post a call stack.

It is particularly confusing that you say that your problem is in code  
with the Russian string, then you immediately say that your problem is  
in another place, not where the Russian string is.

I would post the call stack and maybe some code. What exactly do you  
comment out when it is “all ok”?

---

<div class="post-metadata">

**Author:** ![katsnelson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ba8739/32.png) [@katsnelson](https://www.ruby-forum.com/u/katsnelson)\
**Post date:** [September 19, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/help-with-error-on-project/115007/3 "2007-09-19T22:48:46Z")

</div>

Trace stack:  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:488:in  
`load' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in`load’  
#{RAILS\_ROOT}/vendor/rails/activesupport/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' #{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in`load’  
#{RAILS\_ROOT}/app/controllers/process\_controller.rb:151:in `run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:150:in`each’  
#{RAILS\_ROOT}/app/controllers/process\_controller.rb:150:in `run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:147:in`each’  
#{RAILS\_ROOT}/app/controllers/process\_controller.rb:147:in `run_process' #{RAILS_ROOT}/app/controllers/process_controller.rb:22:in`run’

And some errors:  
app/controllers/sites/osp\_ru.rb:40: syntax error, unexpected  
tIDENTIFIER, expecting ‘)’  
frm.text\_field( :id, “o\_phone” ).set( post.c\_tel )  
^  
app/controllers/sites/osp\_ru.rb:41: syntax error, unexpected  
tIDENTIFIER, expecting kEND  
frm.text\_field( :id, “o\_fax” ).set( post.c\_fax )  
^  
(errors from line 40 to 58, the Russian string in line 39)  
If I comment this string, I don’t get an this error, all works fine, but  
I need some russian text in the code.
