Forum: Ruby on Rails Encoding caracters issue with Rails (Oracle, Ruby-Oci under

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F16def8015a7562a285c65a14be48540?d=identicon&s=25 mathieu.chappuis.lists (Guest)
on 2005-11-29 15:08
(Received via mailing list)

A bit familiar with ROR + Postgres or MySQL, I begin a project with
Rails and Oracle (8.1.7 under Win32)

I give a test drive for providing a Web Client to an existing legacy

Under WinXP I've used "ruby-oci8-0.1.13-mswin.rb" from ruby forge. It
work out of the box for me without building the ruby-oci source tree
nor adding Ruby-DBI.

Just using :
-Ruby One-Click Installer
-ruby ruby-oci8-0.1.13-mswin.rb
-and gems for Rails and dependencies

The database encoding used is French :
NLS_LANG=French_France.WE8ISO8859P1 also tried

Ruby+OCI and Rails connect fine to the database, but special french
enhanced caracters are not properly renderer.

>> MyLegacyTable.find(113)
=> #<MyLegacyTable:0x3889450 @attributes={


"objet"=>"St\351phane \340 la fa\347ade des anc\352tres",

[SNIP] }>

How correctly render theses high chars (\xxx) correctly throught Rails
to the browser ?


This topic is locked and can not be replied to.