- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
String _desc = postParams.get( "description" );
if (_desc == null)
_desc = "Merchant payment";
_desc = _desc.replace("%20", " ");
_desc = _desc.replace("%21", "!");
_desc = _desc.replace("%22", "\"");
_desc = _desc.replace("%23", "#");
_desc = _desc.replace("%24", "$");
_desc = _desc.replace("%25", "%");
_desc = _desc.replace("%26", "&");
_desc = _desc.replace("%27", "'");
_desc = _desc.replace("%28", "(");
_desc = _desc.replace("%29", ")");
_desc = _desc.replace("%2A", "*");
_desc = _desc.replace("%2B", "+");
_desc = _desc.replace("%2C", ",");
_desc = _desc.replace("%2D", "-");
_desc = _desc.replace("%2E", ".");
_desc = _desc.replace("%2F", "/");
_desc = _desc.replace("%3A", ":");
_desc = _desc.replace("%3B", ";");
_desc = _desc.replace("%3C", "<");
_desc = _desc.replace("%3D", "=");
_desc = _desc.replace("%3E", ">");
_desc = _desc.replace("%3F", "?");
_desc = _desc.replace("%40", "@");
_desc = _desc.replace("%5B", "[");
_desc = _desc.replace("%5C", "\\");
_desc = _desc.replace("%5D", "]");
_desc = _desc.replace("%5E", "^");
_desc = _desc.replace("%5F", "_");
_desc = _desc.replace("%60", "`");
_desc = _desc.replace("%7B", "{");
_desc = _desc.replace("%7C", "|");
_desc = _desc.replace("%7D", "}");
_desc = _desc.replace("%7E", "~");
Разработчики java.net.URLDecoder были идиотами. Напишем КРУЧЕ!