Garbled text message Decoding

Source: Internet
Author: User

A Garbled text message was sent, so the text message was forwarded to an email address through the Mobile Phone mailbox. The result is as follows:

Begin: vnote version: 1.1 body; charset = UTF-8; encoding = quoted-printable: = E6 = 83 = B3 = E8 = BF = 87 = E9 = 95 = BF = E5 = A4 = A7 = e4 = BA = 86 = E7 = 9A = 84 = E6 = AD = a3 = E5 = B8 = B8 = E7 = 94 = 9f = E6 = B4 = BB, = E5 = AF = B9 = E6 = 88 = 91 = e4 = BB = ac = E5 = 8d = B4 = E5 = A4 = AA = E9 = 9A = be. = E8 = 87 = B3 = e4 = BB = 8A = e4 = BD = A0 = E5 = 92 = 8C = E6 = 88 = 91 = e4 = BB = 8d = E6 = b4 = BB = E5 = 9C = A8 = E7 = 88 = B6 = E6 = AF = 8d = E5 = AE = B6 = E9 = 87 = 8C = E6 = b2 = BF = E7 = BB = AD = E7 = 9d = 80 = e4 = BA = 8C = E5 = 8d = 81 = E5 = 85 = AB = E5 = B9 = B4 = E6 = 9d = A5 = E7 = 9A = 84 = E8 = A7 = 92 = E8 = 89 = B2. = E3 = 80 = 80 = E7 = 9A = 84 = E7 = A1 = AE = e8 = B6 = 8A = E6 = 9d = A5 = E8 = B6 = 8A = E7 = 81 = b0 = E5 = BF = 83 = e4 = BA = 86, = E9 = 80 = 8f = E6 = 94 = AF = e4 = BA = 86 = E7 = AD = 89 = E5 = be = 85. = E3 = 80 = 80 = E5 = 8e = 8C = E5 = 80 = A6 = e4 = BA = 86 = E5 = 92 = 8C = e4 = BB = 96 = e4 = ba = BA = E7 = 9A = 84 = e4 = BA = 89 = E6 = 89 = A7, = e4 = B9 = 9f = E7 = 9C = 9f = E7 = 9A = 84 = e4 = B8 = 8d = E6 = 84 = BF = E6 = 84 = 8f = E5 = 86 = 8d = E5 = 8B = 89 = E5 = BC = BA = e4 = BD = A0 = E5 = 81 = 9A = e4 = BD = A0 = e4 = B8 = 8d = e6 = 83 = 85 = E6 = 84 = BF = E5 = 92 = 8C = E5 = be = 88 = E8 = 89 = b0 = E9 = 9A = be = E5 = be = 97 = E9 = 80 = 89 = E6 = 8B = A9. = 0a = E8 = BF = 99 = E9 = 87 = 8C = E6 = 88 = 91 = E6 = b2 = a1 = E6 = 9C = 89 = E7 = be = 8e = E5 = A5 = BD = E5 = 9B = 9e = E5 = BF = 86, = e4 = B9 = 9f = E8 = AE = B8 = E7 = 9C = 9f = E7 = 9A = 84 = E5 = 93 = AA = E5 = A4 = A9 = E5 = b0 = b1 = E7 = A6 = BB = E5 = BC = 80 = e4 = BA = 86. = E3 = 80 = 80 dcreated: 20060717t122207z last-modified: 20060717t122207z class: Public X-IRMC-LUID: 000000010030 end: vnote

Obviously, it is encoded by UTF-8: So decoded by replacement conversion:

Byte [] S = {(byte) 0xe6, (byte) 0x83, (byte) 0xb3, (byte) 0xe8, (byte) 0xbf, (byte) 0x87, (byte) 0xe9, (byte) 0x95, (byte) 0xbf, (byte) 0xe5
, (Byte) 0xa4, (byte) 0xa7, (byte) 0xe4, (byte) 0xba, (byte) 0x86, (byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe6, (byte) 0xad, (byte) 0xa3, (byte) 0xe5, (byte) 0xb8, (byte) 0xb8, (byte) 0xe7, (byte) 0x94, (byte) 0x9f, (byte) 0xe6, (byte) 0xb4, (byte) 0xbb, (byte) 0xe5, (byte) 0xaf, (byte) 0xb9, (byte) 0xe6
, (Byte) 0x88, (byte) 0x91, (byte) 0xe4, (byte) 0xbb, (byte) 0xac, (byte) 0xe5, (byte) 0x8d, (byte) 0xb4, (byte) 0xe5, (byte) 0xa4, (byte) 0xaa, (byte) 0xe9, (byte) 0x9a, (byte) 0xbe, (byte) 0xe8, (byte) 0x87, (byte) 0xb3, (byte) 0xe4, (byte) 0xbb, (byte) 0x8a, (byte) 0xe4, (byte) 0xbd, (byte) 0xa0, (byte) 0xe5
, (Byte) 0x92, (byte) 0x8c, (byte) 0xe6, (byte) 0x88, (byte) 0x91, (byte) 0xe4, (byte) 0xbb, (byte) 0x8d, (byte) 0xe6, (byte) 0xb4, (byte) 0xbb, (byte) 0xe5, (byte) 0x9c, (byte) 0xa8, (byte) 0xe7, (byte) 0x88, (byte) 0xb6, (byte) 0xe6, (byte) 0xaf, (byte) 0x8d, (byte) 0xe5, (byte) 0xae, (byte) 0xb6, (byte) 0xe9, (byte) 0x87
, (Byte) 0x8c, (byte) 0xe6, (byte) 0xb2, (byte) 0xbf, (byte) 0xe7, (byte) 0xbb, (byte) 0xad, (byte) 0xe7, (byte) 0x9d, (byte) 0x80, (byte) 0xe4, (byte) 0xba, (byte) 0x8c, (byte) 0xe5, (byte) 0x8d, (byte) 0x81, (byte) 0xe5, (byte) 0x85, (byte) 0xab, (byte) 0xe5, (byte) 0xb9, (byte) 0xb4, (byte) 0xe6, (byte) 0x9d, (byte) 0xa5
, (Byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe8, (byte) 0xa7, (byte) 0x92, (byte) 0xe8, (byte) 0x89, (byte) 0xb2, (byte) 0xe3, (byte) 0x80, (byte) 0x80, (byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe7, (byte) 0xa1, (byte) 0xae, (byte) 0xe8, (byte) 0xb6, (byte) 0x8a, (byte) 0xe6, (byte) 0x9d, (byte) 0xa5
, (Byte) 0xe8, (byte) 0xb6, (byte) 0x8a, (byte) 0xe7, (byte) 0x81, (byte) 0xb0, (byte) 0xe5, (byte) 0xbf, (byte) 0x83, (byte) 0xe4, (byte) 0xba, (byte) 0x86, (byte) 0xe9, (byte) 0x80, (byte) 0x8f, (byte) 0xe6, (byte) 0x94, (byte) 0xaf, (byte) 0xe4, (byte) 0xba, (byte) 0x86, (byte) 0xe7, (byte) 0xad, (byte) 0x89
, (Byte) 0xe5, (byte) 0xbe, (byte) 0x85, (byte) 0xe3, (byte) 0x80, (byte) 0x80, (byte) 0xe5, (byte) 0x8e, (byte) 0x8c, (byte) 0xe5, (byte) 0x80, (byte) 0xa6, (byte) 0xe4, (byte) 0xba, (byte) 0x86, (byte) 0xe5, (byte) 0x92, (byte) 0x8c, (byte) 0xe4, (byte) 0xbb, (byte) 0x96, (byte) 0xe4, (byte) 0xba, (byte) 0xba
, (Byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe4, (byte) 0xba, (byte) 0x89, (byte) 0xe6, (byte) 0x89, (byte) 0xa7, (byte) 0xe4, (byte) 0xb9, (byte) 0x9f, (byte) 0xe7, (byte) 0x9c, (byte) 0x9f, (byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe4, (byte) 0xb8, (byte) 0x8d, (byte) 0xe6, (byte) 0x84, (byte) 0xbf
, (Byte) 0xe6, (byte) 0x84, (byte) 0x8f, (byte) 0xe5, (byte) 0x86, (byte) 0x8d, (byte) 0xe5, (byte) 0x8b, (byte) 0x89, (byte) 0xe5, (byte) 0xbc, (byte) 0xba, (byte) 0xe4, (byte) 0xbd, (byte) 0xa0, (byte) 0xe5, (byte) 0x81, (byte) 0x9a, (byte) 0xe4, (byte) 0xbd, (byte) 0xa0, (byte) 0xe4, (byte) 0xb8, (byte) 0x8d, (byte) 0xe6
, (Byte) 0x83, (byte) 0x85, (byte) 0xe6, (byte) 0x84, (byte) 0xbf, (byte) 0xe5, (byte) 0x92, (byte) 0x8c, (byte) 0xe5, (byte) 0xbe, (byte) 0x88, (byte) 0xe8, (byte) 0x89, (byte) 0xb0, (byte) 0xe9, (byte) 0x9a, (byte) 0xbe, (byte) 0xe5, (byte) 0xbe, (byte) 0x97, (byte) 0xe9, (byte) 0x80, (byte) 0x89, (byte) 0xe6, (byte) 0x8b
, (Byte) 0xa9, (byte) 0x0a, (byte) 0xe8, (byte) 0xbf, (byte) 0x99, (byte) 0xe9, (byte) 0x87, (byte) 0x8c, (byte) 0xe6, (byte) 0x88, (byte) 0x91, (byte) 0xe6, (byte) 0xb2, (byte) 0xa1, (byte) 0xe6, (byte) 0x9c, (byte) 0x89, (byte) 0xe7, (byte) 0xbe, (byte) 0x8e, (byte) 0xe5, (byte) 0xa5, (byte) 0xbd, (byte) 0xe5
, (Byte) 0x9b, (byte) 0x9e, (byte) 0xe5, (byte) 0xbf, (byte) 0x86, (byte) 0xe4, (byte) 0xb9, (byte) 0x9f, (byte) 0xe8, (byte) 0xae, (byte) 0xb8, (byte) 0xe7, (byte) 0x9c, (byte) 0x9f, (byte) 0xe7, (byte) 0x9a, (byte) 0x84, (byte) 0xe5, (byte) 0x93, (byte) 0xaa, (byte) 0xe5, (byte) 0xa4, (byte) 0xa9, (byte) 0xe5
, (Byte) 0xb0, (byte) 0xb1, (byte) 0xe7, (byte) 0xa6, (byte) 0xbb, (byte) 0xe5, (byte) 0xbc, (byte) 0x80, (byte) 0xe4, (byte) 0xba, (byte) 0x86, (byte) 0xe3, (byte) 0x80, (byte) 0x80 };

Try {
String STR = new string (S, "UTF-8 ");
System. Out. println (STR );
} Catch (unsupportedencodingexception e ){

E. printstacktrace ();
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.