[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 // use no mbstring help here 4 if(!defined('UTF8_NOMBSTRING')) define('UTF8_NOMBSTRING',1); 5 6 class utf8_utf16be_test extends DokuWikiTest { 7 // some chars from various code regions 8 protected $utf8 = '鈩ℵŁöx'; 9 protected $utf16 = "\x92\x29\x21\x35\x1\x41\x0\xf6\x0\x78"; 10 11 /** 12 * Convert from UTF-8 to UTF-16BE 13 */ 14 function test_to16be(){ 15 $this->assertEquals(\dokuwiki\Utf8\Conversion::toUtf16Be($this->utf8), $this->utf16); 16 } 17 18 /** 19 * Convert from UTF-16BE to UTF-8 20 */ 21 function test_from16be(){ 22 $this->assertEquals(\dokuwiki\Utf8\Conversion::fromUtf16Be($this->utf16),$this->utf8); 23 } 24 } 25 26 //Setup VIM: ex: et ts=2 :
title
Description
Body
title
Description
Body
title
Description
Body
title
Body