Forum: Ruby on Rails characters are not being correctly displayed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ac60b044f9171bfd4ec7af3e94ff8fbb?d=identicon&s=25 Rodrigo Dominguez (rorra)
on 2006-01-30 15:46
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
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-01-30 16:33
(Received via mailing list)
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?
5ce55767684e0cd1727db2b8b8975640?d=identicon&s=25 Steve Longdo (Guest)
on 2006-01-30 16:45
(Received via mailing list)
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-01-30 16:54
(Received via mailing list)
Steve Longdo wrote:
> Here is some info from the wiki:
> http://wiki.rubyonrails.org/rails/pages/HowtoSetDe...
Yup.  That's one.  Then there's the view templates and the database to
take care of, too.
Ac60b044f9171bfd4ec7af3e94ff8fbb?d=identicon&s=25 Rodrigo Dominguez (rorra)
on 2006-01-30 18:41
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
This topic is locked and can not be replied to.