public static String percentEncode ( String string ) { String encoded = formURLEncode ( string ) ; for ( EncodingRule rule : ENCODING_RULES ) { encoded = rule . apply ( encoded ) ; } return encoded ; }
Percent encodes a string