Java URL Decode decodeSpecialMdxCharactersInNames(String name)

Here you can find the source of decodeSpecialMdxCharactersInNames(String name)

Description

decode Special Mdx Characters In Names

License

Apache License

Declaration

static String decodeSpecialMdxCharactersInNames(String name) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.UnsupportedEncodingException;

import java.net.URLDecoder;

public class Main {
    static String decodeSpecialMdxCharactersInNames(String name) {
        try {/* w  w w  .j  a  va 2  s.  co m*/
            name = name.replace("XXX", "%");
            name = name.replace("YYY", ".");
            name = name.replace("ZZZ", "-");
            name = URLDecoder.decode(name, "UTF-8");
            return name;
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        return null;
    }
}

Related

  1. decodePercent(String s)
  2. decodePercent(String str)
  3. decodeRequestBody(String requestBody)
  4. decodeRequestString2(String inputString)
  5. decodeRfc5849(final String value)
  6. decodeStr(String str)
  7. decodeString(String cookedTextString)
  8. decodeString(String myString)
  9. decodeStringByUTF8(String str)