Re: [Users] utf-8 subject in outgoing messages
How should the charset information be encoded? On Nov 25, 2010, at 12:34, Piotr Isajew wrote: Hi, Is there any way to properly use Send MMS service to send MMS message with UTF-8 encoded subject? I tried both passing raw utf-8 string as 'subject' parameter of get request and encoding it according to RFC-2047 before. From tcpdump it looks for me that no charset information is encoded in Subject field. Regards, Piotr ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users
Re: [Users] utf-8 subject in outgoing messages
On Thu, Nov 25, 2010 at 11:19:32AM +0100, Piotr Isajew wrote: 0x16 0xea: looks like encoding indication for me, doesn't match utf-8 above, I'm not sure, why 0xEA is an indication of UTF-8 charset (i'm not sure why it differs from the value I quoted before) and 0x16 is a number of octets in subject including charset octet and null-terminator. I think the fix would need to modify mms_pack_well_known_field(), create separate case for MMS_HEADER_SUBJECT and push those two octets into os before call to wsp_pack_text() Paul, what do you think about this? pgpy0fK3uKDQd.pgp Description: PGP signature ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users
Re: [Users] utf-8 subject in outgoing messages
Should work. Can you test it and advise if it works? Then I'll apply your patch. On Nov 25, 2010, at 18:01, Piotr Isajew wrote: On Thu, Nov 25, 2010 at 11:19:32AM +0100, Piotr Isajew wrote: 0x16 0xea: looks like encoding indication for me, doesn't match utf-8 above, I'm not sure, why 0xEA is an indication of UTF-8 charset (i'm not sure why it differs from the value I quoted before) and 0x16 is a number of octets in subject including charset octet and null-terminator. I think the fix would need to modify mms_pack_well_known_field(), create separate case for MMS_HEADER_SUBJECT and push those two octets into os before call to wsp_pack_text() Paul, what do you think about this? ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users