Java URL Encode urlEncode(String str)

Here you can find the source of urlEncode(String str)

Description

url Encode

License

Open Source License

Declaration

static String urlEncode(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static String urlEncode(String str) {
        str = str.replace('+', '-').replace('/', '_');
        return str.replace("=", "");
    }/*from   ww w.  ja v  a  2s. c o m*/
}

Related

  1. urlEncode(byte[] rs)
  2. urlencode(byte[] unencodedBytes)
  3. URLEncode(String in)
  4. urlEncode(String origString)
  5. URLencode(String s)
  6. urlEncode(String str)
  7. urlEncode(String str)
  8. urlEncode(String urlPlain)
  9. urlEncodeFilename(char[] input)