| Message: 57373 |
 |
BY: Qi Zhang (todayhill) DATE: 2008-06-10 09:24 SUBJECT: Encoding problem when using ibm_db I met a problem when using ibm_db, I'm not sure whether this is a ibm_db problem or my wrong operation. I describe the problem below:
I'm using ROR and ibm_db to build a WEB application, we support Chinese in this application. So, I set the database encoding to utf-8 and also set "encoding= utf8" argument in database.yml(is ibm_db support this setting?). Also, set page encoding was set to utf-8. In this situation, Chinese can not be insert to database correctly. When I change the encoding in view level to GBK(<meta http-equiv="content-type" content="text/html;charset=GBK" />), it works fine.
BTW, ibm_db can insert Chinese character in irb console. But it doesn't work in fixtures.
Is there anyone can provide some suggestions? Thanks in advance. | |