URL解碼在線工具



關於URL解碼在線工具:

這個在線URL解碼工具可以幫助您將一個URL格式字符串轉換成一個普通UTF-8字符串.

URL解碼轉換錶:

%21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 %5B %5D
! # $ & ' ( ) * + , / : ; = ? @ [ ]

comic url decode

用Python計算字符串的URL解碼:

  1. import urllib.parse
  2.  
  3.  
  4. def url_decode(input_str):
  5. output_msg = urllib.parse.unquote(input_str).strip()
  6. return output_msg

用Java計算字符串的URLL解碼:

  1. import java.io.UnsupportedEncodingException;
  2. import java.net.URLDecoder;
  3.  
  4. public class URL {
  5. public static String url_decode(String url) throws UnsupportedEncodingException {
  6. return URLDecoder.decode(url, "UTF-8");
  7. }
  8.  
  9. public static void main(String[] args) throws UnsupportedEncodingException {
  10. String result = url_decode("https%3A%2F%2Fmaps.google.com%2Fmaps%3Fll%3D37.413323%2C-122.081267%26z%3D11%26q%3DMountain+View+California+USA");
  11. System.out.println(result);
  12. }
  13. }
  14.  
  15. -------------------
  16. https://maps.google.com/maps?ll=37.413323,-122.081267&z=11&q=Mountain View California USA