Encoding UTF-8 MMS Subject Line | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through February 03, 2005 ⬆ |
◄ ► |
Author | Message | |||
manuel Unregistered guest |
hi i need to seek your advice... i follow the wsp 230 as i understood it for chinese mms subject header. here is my encoded subject header: 96 1F 2F EA 7A 3D 45 46 3D 42 42 3D 42 46 3D 45 35 3D 41 34 3D 41 37 3D 45 37 3D 38 46 3D 41 44 3D 45 35 3D 38 46 3D 38 33 3D 45 39 3D 38 31 3D 42 38 00 96 - subject 1F - length quote (coz data bytes length > 30) 2F - length of data + 1 for EA + 1 for 00 EA - utf8 (i wonder if i should put this) 7A - [QUOTE] the rest are data. i converted my utf8 bytes to quoted-printable bytes. ok, this is not correct coz the mms is not showing up in the emulator. so if anyone can point out my mistake i would greatly apprieciate the help! thank u... manuel | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3224 Registered: 10-2002 |
Manuel, I believe the problem is that the length byte is off by 1. I could 0x30 bytes of data following it, not 0x2F. -bn | |||
manuel Unregistered guest |
bryce, i've modified the size and it seems the data is stil not correct. i see the quoted printable string instead of the the chinese characters... here is the subject in hex: 96 7A 2F EA 3D 45 46 3D 42 42 3D 42 46 3D 45 35 3D 41 34 3D 41 37 3D 45 37 3D 38 46 3D 41 44 3D 45 35 3D 38 46 3D 38 33 3D 45 39 3D 38 31 3D 42 38 00 i am wondering if the phone has enough information to decode the subject correctly. manuel | |||
manuel Unregistered guest |
bryce, btw, the subject size in the previous post is x30 and not x2f. sorry for the typo. with this subject, the mms showed up and but the subject doesn't decode correctly. actually the pdu with the original subject encoding doesn't even show up in my emulator. now i m not quite sure how the subject is beign encoded. was my orignal interpretation correct? manuel | |||
manuel Unregistered guest |
Hi everyone, The mms utf-8 subject is correctly shown. Bryce was right on the that the byte-length was off. Just change the byte length. Thanks Bryce! The length is: (# data-bytes) + 1 (for 7A) + 1 (for EA) +1 (for 00). manuel |