(Once more, to the list this time.) Jesse Vincent <[EMAIL PROTECTED]> writes: > On Mon, Aug 13, 2007 at 05:36:50PM +0100, Nicholas Clark wrote: >> Is there a good way to reliably map text outside the range of legal >> identifiers into that range, without having too many collisions? >> >> (I realise that this might sound like "solve the halting problem" or "integer >> knapsack" but I think we need "good" rather than "perfect") > See if URL-encoding meets the spec?
You'd have to strip out the percent signs; they're not allowed in XML IDs. Other than that, URL-encoding sounds like the best bet. -- Espen Wiborg <[EMAIL PROTECTED]> By all means marry: If you get a good wife, you'll become happy; if you get a bad one, you'll become a philosopher. - Socrates _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com