public static String getEncodingFileName(String fn) {
        try {
            return URLEncoder.encode(fn, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new ValidationLibException("unSupported fiel encoding : " + e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
public static String getEncodingFileName ( String fn ) { try { return URLEncoder . encode ( fn , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { throw new ValidationLibException ( "unSupported fiel encoding : " + e . getMessage ( ) , HttpStatus . INTERNAL_SERVER_ERROR ) ; } }
Gets encoding file name.

@param fn the fn
@return the encoding file name