-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Daniel Barrett wrote:
I have a PHP function that returns an HTML table, occasionally with 8-bit characters in it. This function is called by a tag extension <foobar> and a parser function {{#foobar:}}. When invoked as <foobar> it works fine, but {{#foobar:}} dies when an 8-bit character is returned. No errors are logged; the parser function just displays nothing. ({{#foobar:}} works in all other cases.)
Any ideas why this might be so? Mediawiki 1.12.0, PHP 5.2.5, Apache 2.2.8, Windows 2003 Server.
Make sure that your text is valid UTF-8, not in some 8-bit encoding. Various bits of the system (such as regular expressions) like to eat strings containing invalid bytes in later versions of PHP.
- -- brion vibber (brion @ wikimedia.org)