Hi All,
I have issue with decode Hex String value value to String conversion.
If Input is :
687474703a2f2f7777772e676f6f676c652e6c6b2f
Here is my decode logic:
private static String hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16)
<< 4) + Character.digit(s.charAt(i+1), 16));
}
return new String(data);
}
expected output: http://www.google.lk
Google app-engine output : 687474703a2f2f7777772e676f6f676c652e6c6b2f
this one work fine with Any other java application, but For Google App
engine this doesn't work.
Anyone know why this happened?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.