for (int i = 0; i < text.length(); i += 2)
{
int value = (Integer.parseInt("" + text.charAt(i), 16) * 16) + (Integer.parseInt("" + text.charAt(i + 1), 16));
bytes[i / 2] = (byte) value;
}
msg = new OutboundBinaryMessage(rs.getString("recipient").trim(), bytes);
}
break;
case 'U':
msg = new OutboundMessage(rs.getString("recipient").trim(), rs.getString("text").trim());
msg.setEncoding(MessageEncodings.ENCUCS2);