MMSComp issues

MMSComp issues SearchSearch
Author Message
Stefan Li
Unregistered guest
Posted on Tuesday, September 13, 2005 - 11:48 am:   

Hi I have some questions about the MMSComp utility. I have read through http://www.ihub.com/MMS%20Messages.htm but it doesn't give me any answers.

If I use the -cCHARSET options, what exactly is affected? I.e. which header fields will be in utf-8? And if I choose a specific charset, say utf-8, doesn't the entire header file (the one that MMSComp parses) have to be encoded in that charset? How do I for example encode only the subject with one charset and text files in another?

Thanks in advance
/Stefan
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4964
Registered: 10-2002
Posted on Monday, September 19, 2005 - 11:29 pm:   

Hi Stefan,

MMSCOMP is designed to be a simple utility.

If you specify -cUTF-8, this tells it to set the flags in the header to indicate the character set is UTF-8. This affects the subject header, as well as any text attachments.

There is not flexibility to mix and match.

Although, in later versions of MMSCOMP, we did start looking for signature bytes at the start of text attachments which would tell us if a file is in UCS2 format, or in UTF-8 format. And this auto-detection does take precdence over any command line parameters.

And, now that I think about it, I believe we will also parse a charset out of the ".hdr" file for text attachments which will override any command line parameter. For example, I believe the following will work for setting that a particular attachment uses utf-8 while others do not:

X-NowMMS-Content-Location: filename.txt;text/plain;charset=utf-8