rodrigo dominguez
2006-Jan-30 14:46 UTC
[Rails] characters are not being correctly displayed
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 -- Posted via http://www.ruby-forum.com/.
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? -- Alex
Here is some info from the wiki: http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding On 1/30/06, Alex Young <alex@blackkettle.org> wrote:> > 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? > > -- > Alex > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/19dffa85/attachment.html
Steve Longdo wrote:> Here is some info from the wiki: > http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncodingYup. That''s one. Then there''s the view templates and the database to take care of, too. -- Alex
rodrigo dominguez
2006-Jan-30 17:41 UTC
[Rails] Re: characters are not being correctly displayed
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 -- Posted via http://www.ruby-forum.com/.