From: Terry Crowl Date: 2011-08-31T06:17:56+09:00 Subject: Re: oracle oci8 utf8 corruption krzysztof cierpisz wrote in post #821043: > On May 28, 1:11 pm, ciapecki wrote: >> conn.logoff >> >> chris@emeadb:~/work/ruby/oci$ ruby read_write_utf8.rb >> >> where should I try to dig into to find out how to force the oracle >> database data to be properly stored in the file on linux? >> I just add that >> LANG=en_US.UTF-8 >> >> thanks, >> chris > > apparently setting NLS_LANG=AMERICAN_AMERICA.UTF8 (externally! - not > in the ruby script) did the trick. > > chris I placed ENV['NLS_LANG']='AMERICAN_AMERICA.UTF8' as the first line in my ruby script and it worked. -- Posted via http://www.ruby-forum.com/.