Looking for a simple validation script that will replace all chars in a string except RFC 3986 valid chars
A-Z, a-z开发者_如何学C, 0-9, -, ., _, ~, :, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ; and =. Also any other character needs to be encoded with the percent-encoding (%hh)
rawurlencode()
精彩评论