Java URL Decode decodeHtmlString(String inputString)

Here you can find the source of decodeHtmlString(String inputString)

Description

decode Html String

License

Open Source License

Declaration

public static String decodeHtmlString(String inputString) 

Method Source Code


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

import java.io.UnsupportedEncodingException;

public class Main {
    public static String decodeHtmlString(String inputString) {
        String result;//from w w  w .  ja  v  a 2 s .c  o  m
        try {
            result = java.net.URLDecoder.decode(inputString, "UTF8");
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            result = "";
        }
        return result;
    }
}

Related

  1. decodeAjax(String value)
  2. decodeAjaxParam(final String source)
  3. decodeArray(final String val)
  4. decodeCodedStr(String sourceStr, String targetCharset)
  5. decodeFormData(String formData)
  6. decodeIfNeeded(String s)
  7. decodeInternally(String encoded)
  8. decodeJobHistoryFileName(String logFileName)
  9. decodeKVMap(String keyValueString)