From: Jeff D. <da...@da...> - 2002-10-27 16:34:18
|
Here's a guess: The code in lib/transform.php (the "old" transform code) mangles one "magic" byte-value. Which character it is that get mangled is determined by the setting of the global $FieldSeparator. By default, it is the value '\x81'. (This value is picked because it is a non-printing control character in all the ISO-8859-x encodings.) (The trasform.php code uses this byte to insert temporary markers within the page text as it processes it...) (In PhpWiki 1.3.3 there are two separate markup engines. The "old" one in transform.php, and the new one in BlockParser.php and InlineParser.php. The new one gets used if you check the "use new markup" box when you're editing the page. In the most recent CVS code only the new markup engine is used. I have no idea how recent the postnuke module code is, so can't tell you where you are within this timeline.) This is hackish, but: you might try changing $FieldSeparator to '\xff' (which is an illegal byte in UTF-8) or to one of the lesser used ASCII control characters: maybe '\x01' (SOH). If that doesn't help, then this is a red herring. In that case, if you can determine exactly which byte-values/characters are being mangled it might help diagnose the problem... Jeff |