public class UrlDecoder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
urlDecode(String content,
Charset charset,
boolean plusAsBlank)
Decode/unescape a portion of a URL, to use with the query part ensure
plusAsBlank is true. |
public static String urlDecode(String content, Charset charset, boolean plusAsBlank)
plusAsBlank
is true.content
- the portion to decodecharset
- the charset to useplusAsBlank
- if true
, then convert '+' to space (e.g. for www-url-form-encoded content), otherwise leave as is.Copyright © 2010–2019. All rights reserved.