public static String encodeFragment ( final String fragment , final String encoding ) { return encodeUriComponent ( fragment , encoding , URIPart . FRAGMENT ) ; }
Encodes the given URI fragment with the given encoding .