论坛首页 入门技术论坛

使用ruby的一些疑问

浏览 3156 次
该帖已经被评为新手帖
作者 正文
   发表时间:2007-01-08  
1.我在用ror连mysql的时候,不知道如何选择字符集,utf8,latin1,gbk等都试过了,增加的中文内容从数据库取出来也能用中文正常显示,不过用mysql front打开时,看到的数据全是问号,这是怎么一回事啊?
2.在用ror连oracle的时候,老是说oci.dll找不到,我把oracle的bin目录添到环境变量里面还是如此,然后我就把oci.dll放到system32的目录里面,找不到的提示不会弹了,但是会出现以下报错:

c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:49:in `create': ERROR (OCIError)
from c:/ruby/lib/ruby/site_ruby/1.8/oci8.rb:49
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracle_adapter.rb:29
... 16 levels...
from ./Script/../config/boot.rb:28
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from Script/server:4

还请对ror有经验的开发者帮忙解答一下,谢谢!
   发表时间:2007-01-09  
不知道是只有我遇到这样的问题,还是大家曾经都遇到过。知道的说一声啊!
0 请登录后投票
   发表时间:2007-01-09  
关于第一个问题,我blog里详细的说明。
第二个的话我无能为力,因为机器上没装oracle哈,呵呵
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics