Oracle problem with encoding

I have oracle 10g and my db is in AL32UTF8, I had install oci8 from
oracle but when i run a query the greek characters returns with ???. I
tried also with dbi but with no luck. My ruby version is 1.8.7 and my
system ubuntu 10.04. Here is my code:

require ‘rubygems’
require ‘unicode’
require ‘iconv’
require ‘oci8’
require ‘jcode’

conn =‘user’, ‘password’, ‘host/db’)
conn.exec('select * from tablet ') do |r|
puts r


Any suggestions how to change charset enconding?

Thank you

I found the answer, it is:


Thank you

I came across your post since I have the same issue. Could you explain
your answer a bit? Where did you enter that information?



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs