/** * test encoding setting. * * @return void */ public function testEncoding() { $result = $this->Dbo->setEncoding('UTF8'); $this->assertTrue($result); $result = $this->Dbo->getEncoding(); $this->assertEquals('UTF8', $result); $result = $this->Dbo->setEncoding('EUC_JP'); /* 'EUC_JP' is right character code name in PostgreSQL */ $this->assertTrue($result); $result = $this->Dbo->getEncoding(); $this->assertEquals('EUC_JP', $result); }
/** * test encoding setting. * * @return void */ public function testEncoding() { $result = $this->Dbo->setEncoding('utf8'); $this->assertTrue($result) ; $result = $this->Dbo->getEncoding(); $this->assertEqual('utf8', $result) ; $result = $this->Dbo->setEncoding('EUC-JP'); $this->assertTrue($result) ; $result = $this->Dbo->getEncoding(); $this->assertEqual('EUC-JP', $result) ; }