# Unicode and ROR

**URL:** <https://www.ruby-forum.com/t/unicode-and-ror/114091>\
**Category:** Rails\
**Created:** [September 7, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/unicode-and-ror/114091 "2007-09-07T19:53:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stitcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@stitcher](https://www.ruby-forum.com/u/stitcher)\
**Post date:** [September 7, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/unicode-and-ror/114091/1 "2007-09-07T19:53:26Z")

</div>

Hi!

I have created a simple translation web application, but it seems that  
I’m missing something.

The controller part, where I set the value is giving me an exception  
unless I’m sending plain English characters.

For example:

In controller:

def translate  
@result = “mi  
corazón” end

In view (translate.rhtml):

\<%= @result -%\>

I’m getting exception:

C:/dev/code/sandbox/app/controllers/api\_controller.rb:4: unterminated  
string meets end of file  
C:/dev/code/sandbox/app/controllers/api\_controller.rb:4: syntax error,  
unexpected $end, expecting kEND

If I’m using the same code in a ruby script, everything is fine:

@result = "mi  
corazón"puts @result

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![stitcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@stitcher](https://www.ruby-forum.com/u/stitcher)\
**Post date:** [September 8, 2007, 12:25am UTC](https://www.ruby-forum.com/t/unicode-and-ror/114091/2 "2007-09-08T00:25:33Z")

</div>

It looks like you miss END or something like that?
