Here you can find the source of encodeName(String createdName)
Parameter | Description |
---|---|
createdName | a parameter |
private static String encodeName(String createdName)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class Main { /**// w w w . j av a 2 s .c o m * * @param createdName * @return */ private static String encodeName(String createdName) { try { return URLEncoder.encode( URLEncoder.encode(createdName, "UTF-8"), "UTF-8"); } catch (final UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } return createdName; } }