Parent Directory | Revision Log | Patch
revision 1429 by torben, Mon May 2 16:50:15 2011 UTC | revision 1430 by torben, Mon May 2 19:23:21 2011 UTC | |
---|---|---|
# | Line 40 public class HttpUtil { | Line 40 public class HttpUtil { |
40 | ||
41 | String val = null; | String val = null; |
42 | if (pair.length == 2) { | if (pair.length == 2) { |
43 | ||
44 | ||
45 | try { | try { |
46 | val = URLDecoder.decode(pair[1], "UTF-8"); | val = URLDecoder.decode(pair[1], "ISO-8859-1"); |
47 | } catch (UnsupportedEncodingException e) { | } catch (UnsupportedEncodingException e) { |
48 | val = pair[1]; // if decode fails try with the raw string | val = pair[1]; // if decode fails try with the raw string |
49 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |