diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-02-21 22:26:05 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-02-21 22:26:05 +0100 |
commit | 1abfaba47f3c1c4352eb728afcd4b6871b7bb4a0 (patch) | |
tree | 4e49b6151e6db0160e737b811d7e6fd14e21618c /_test/cases/inc/utf8_utf16be.test.php | |
parent | 559fe45bec851f141d2599db3bf5ea23a2b0509d (diff) | |
download | rpg-1abfaba47f3c1c4352eb728afcd4b6871b7bb4a0.tar.gz rpg-1abfaba47f3c1c4352eb728afcd4b6871b7bb4a0.tar.bz2 |
fixes for utf-8 to/from unicode conversion
The functions utf8_to unicode and unicode_to_utf8 didn't work correctly
with some 3 and 4 byte strings. This exchanges those functions against
two more sophisticated ones. It also adds unit testing for them.
darcs-hash:20060221212605-7ad00-7bfefe8c9615d5a7f3b33c279ce79d4200d4778c.gz
Diffstat (limited to '_test/cases/inc/utf8_utf16be.test.php')
-rw-r--r-- | _test/cases/inc/utf8_utf16be.test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_test/cases/inc/utf8_utf16be.test.php b/_test/cases/inc/utf8_utf16be.test.php index 2d79ca35a..3a346da51 100644 --- a/_test/cases/inc/utf8_utf16be.test.php +++ b/_test/cases/inc/utf8_utf16be.test.php @@ -3,7 +3,7 @@ require_once DOKU_INC.'inc/utf8.php'; // use no mbstring help here -define('UTF8_NOMBSTRING',1); +if(!defined('UTF8_NOMBSTRING')) define('UTF8_NOMBSTRING',1); class utf8_utf16be_test extends UnitTestCase { // some chars from various code regions |