# Characters are not being correctly displayed

**URL:** <https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870>\
**Category:** Rails\
**Created:** [January 30, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870 "2006-01-30T15:45:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [January 30, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870/1 "2006-01-30T15:45:58Z")

</div>

ok, here is my problem:  
I started at my house a rails project, and I’m from argentina so I use  
spanish, and I uses characters like ‘Ã¡’, ‘Ã©’, ‘Ã­’, ‘Ã³’, ‘Ãº’.  
In my house, every was working ok.  
Then I brought the application at office, and when I start the server, I  
just can’t see those characters, instead I see, what should I do to set  
the locale to es-ES in the rails application? is there a way to set this  
in configuration.rb?  
Thank you for your time

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [January 30, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870/2 "2006-01-30T16:33:22Z")

</div>

rodrigo dominguez wrote:

> ok, here is my problem:  
> I started at my house a rails project, and I’m from argentina so I use  
> spanish, and I uses characters like ‘Ã¡’, ‘Ã©’, ‘Ã­’, ‘Ã³’, ‘Ãº’.  
> In my house, every was working ok.  
> Then I brought the application at office, and when I start the server, I  
> just can’t see those characters, instead I see, what should I do to set  
> the locale to es-ES in the rails application? is there a way to set this  
> in configuration.rb?  
> You need to make sure your character sets are configured correctly  
> throughout - unfortunately there’s no single, central place to configure  
> them at the moment. When you say you use characters like ‘Ã¡’, ‘Ã©’, ‘Ã­’,  
> ‘Ã³’, and ‘Ãº’, which character set are they stored in?

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [January 30, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870/3 "2006-01-30T16:45:53Z")

</div>

Here is some info from the wiki:  
[http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding](http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding)

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [January 30, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870/4 "2006-01-30T18:41:13Z")

</div>

I downloaded the Locale plugin… but once I understood how the Locale  
plugin works, I checked my view files, and I realized that my view files  
were wrong :S  
Right now I’m asking in the company what the problem could be, in  
example, the ‘Ã³’ appears like ‘Â½’, and the browser displays them like  
‘?’, so I converted the file from ASCII to UTF8, and then I all the  
characters that were displaying like ‘Â½’ became in ‘Ã³’, so it was ok,  
but when I tried to see the page from the browser, I just saw the code,  
it was not interpreted by ruby, instead it send me the file like a text  
file  
so I don’t have any idea of what’s going on, I asked to my partners here  
in the office but they don’t know anything about it

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [January 30, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/characters-are-not-being-correctly-displayed/98870/5 "2006-01-30T16:54:58Z")

</div>

Steve L. wrote:

> Here is some info from the wiki:  
> [http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding](http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding)  
> Yup. That’s one. Then there’s the view templates and the database to  
> take care of, too.
