[-charset] parameter is ignored by MMSCOMP tool | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through June 06, 2005 ⬆ |
◄ ► |
Author | Message | ||||
Eddy Kvetny New member Username: Eddyk Post Number: 7 Registered: 11-2004 |
Hi, For some reason the ASCII text content of an MMS message composed using the MMSCOMP is added in UCS-2 format. It occurs when I don't specify the "charset" parameter for MMSCOMP and when I specify "-cUTF-8". In the second case, I see that "charset=utf-8" is added to the content type of the text component but in both case the content itself is in UCS-2 I am attaching the Ethereal sniffer log I would appreciate any help in this regard. Thanks in advance
| ||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3762 Registered: 10-2002 |
Hi Eddy, Is the original text file in UCS-2 format? I cannot see any reason why MMSCOMP would convert the document to UCS-2 format. Basically, MMSCOMP doesn't analyse or change the content of the text document at all ... it just includes it as is. So my suspicion is that your source text file is in UCS-2 format. Is that not the case? If it is not the case, could you give me a ZIP file that has the files that you are passing to MMSCOMP so that I can try it for myself to understand. -bn | ||||
Eddy Kvetny New member Username: Eddyk Post Number: 9 Registered: 11-2004 |
Hi Bryce, No, the original text is in ASCII format. Attached please find with the component used for composing an MMS message with MMSCOMP and the message itself I am using the following command: mmscomp -cUTF-8 eddy.hdr mms_io.smil txt_0.txt img_0.jpg txt_1.txt img_1.jpg aud_1.amr Thanks in advance for your help
| ||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3779 Registered: 10-2002 |
Hi Eddy, The text file was saved in Unicode format. Open it up in Notepad, and do Save/As to save it in a different character set. If you want to send it out in UCS-2 format, specify MMSCOMP -ciso-10646-ucs-2 ... Also, as referenced in another thread, we made some tweaks to MMSCOMP so that it would recognise UTF-8 (or UCS-2) automatically and set the appropriate headers. http://support.nowsms.com/discus/messages/485/7478.html | ||||
Eddy Kvetny New member Username: Eddyk Post Number: 10 Registered: 11-2004 |
Hi Bryce, Thanks for your help. You are right that the text file was saved in Unicode and I was even unaware of it since the MMS components have been an output of the 3rd-party MMS composer. I've just opened text parts in Notepad and did not pay attention that they are in Unicode Thanks again. |