On Sun, 04 Apr 2004 14:39:16 +0100, Timwi wrote:
You could just simply hexdump it, without the '%'.
No, there are a few characters not allowed in anchor names, current replacement is now this: $canonized_headline = preg_replace("/[ &\/<>\(\)\[\]=,+]+/", '_', html_entity_decode( $tocline));
Validates ok now (at least in utf-8), but i might still have missed some invalid characters.