utf-8 string from python to java android in AWS -
I have the following problem:
I sent this string to the AWS SQS service (without any Excerpt: Use of Python:
"Taillows" "
When I saw the SQS web interface, I found the following string (without any quotes):
"VGFsaMOjbw =="
Whatever is the same string returning to the Android Java API of SQLs. How can I change "VGFsaMOjbw ==" in "Taalhao"? A Shish, but did not work:
string debug = new string (MAA.BODI). GetBytes (), "UTF-8");
< / Pre>Update: Find out how to use Java. Base should be converted to 64.
string debug = M.T.T.BODI (); log D. ("AWSQS", debug), byte [] tmp2 = Base64.decode (debug, base64.default); string val 2 = new string (tmp2, "utf-8"); log.d ("awsqs", val 2);
In Than, you will do this:
Binascii.a2b_base64 .decode ('utf-8')
If you are looking for Java equal to that , You have to put the "Java" tag instead of a "Python" tag in your question: -)
Comments
Post a Comment