I use the escape() function to do URL encoding on a text string (lets call it 'original text string') and use the resultant string as a VALUE in a NAME/VALUE pair. However sometimes the Apache server fails with a message about invalid URL characters when it tries to use it in a NAME/VALUE pair situation (whatever that is called? I don't do this stuff often).
The 'original text string' contained ellipses (...) which seemed to be encode as '%u2026'. There are other 'original text strings' that fail but I have not yet tracked down the culprit characters.
How can I get rid of unaccepatable characters BEFORE encoding?