I have changed a method public String decode(String pString, String charset)
for fix problem:
public String decode(String pString, String charset)
throws DecoderException, UnsupportedEncodingException
{
if (pString == null) {
return null;
}
StringBuffer sb = new StringBuffer();
for (int i = 0; i < pString.length(); i++) {
char b = pString.charAt(i);
if (b == '+') {
sb.append(' ');
} else if (b == '%') {
try {
int u = Character.digit(pString.charAt(++i), 16);
int l = Character.digit(pString.charAt(++i), 16);
if (u == -1 || l == -1) {
throw new DecoderException("Invalid URL encoding");
}
sb.append((char)((u << 4) + l));
} catch(ArrayIndexOutOfBoundsException e) {
throw new DecoderException("Invalid URL encoding");
}
} else {
sb.append(b);
}
}
return sb.toString();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]