UTF-16 text is saved with one octet less.

UTF-16 text is saved with one octet less. SearchSearch
Author Message
Dono
Unregistered guest
Posted on Wednesday, December 08, 2004 - 11:20 pm:   

Hi Bryce,

I sent out MMS message with UTF-16 text as part of multipart body and noticed that when MMSC delivered the MMS message to the recipient one byte was missing from the UTF-16 text.

The sent UTF-16 text ended with "0x2E 0x00", but when saved in MMSC (MMSCDATA) it was ended with "0x2E" and when delivered also ended with "0x2E" without "0x00".

Any clue why MMSC is behaving this way? I've set the Charset=utf-16 in the multipart content-type for the text.
Dono
Unregistered guest
Posted on Thursday, December 09, 2004 - 05:23 pm:   

Never mind, I've solved this issue. The problem was "utf-16" was not an acceptable charset and according to WAP-WSP specs it should be set to "iso-10646-ucs-2". Now motorola phone can view the text correctly.