public function testIsoEncoding() { $adapter = new Adapter\Xliff(__DIR__ . '/_files/translation_en3.xliff', 'en', array('useId' => false)); $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1')); $this->assertEquals('Message 1 (en)', $adapter->_('Message 1')); if (PHP_OS == 'AIX') { return; // 'Charsets below are not supported on AIX'; } $this->assertEquals(iconv('UTF-8', 'ISO-8859-1', 'Küchen Möbel (en)'), $adapter->translate('Cooking furniture')); $this->assertEquals('Cooking furniture (en)', $adapter->translate(iconv('UTF-8', 'ISO-8859-1', 'Küchen Möbel'))); }