Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
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.


Thread View

Thread Author Date
Encoding problem when using ibm_dbQi Zhang2008-06-10 09:24
      RE: Encoding problem when using ibm_dbPraveen Devarao2008-06-10 11:21
            RE: Encoding problem when using ibm_dbQi Zhang2008-06-11 08:08
                  RE: Encoding problem when using ibm_dbQi Zhang2008-06-13 07:36
                        RE: Encoding problem when using ibm_dbQi Zhang2008-06-13 07:37
                              RE: Encoding problem when using ibm_dbPraveen Devarao2008-06-18 02:55
                                    RE: Encoding problem when using ibm_dbPraveen Devarao2008-06-20 10:11
                                          RE: Encoding problem when using ibm_dbPraveen Devarao2008-06-20 14:22
                                                RE: Encoding problem when using ibm_dbblooming wang2009-03-26 14:41
                                                      RE: Encoding problem when using ibm_dbPraveen Devarao2009-03-26 16:45

Post a followup to this message