I want to show a message which iMtm is KUidMsgTypeBt.The mime type of attachment is "text/......" now.I want to convert to unicode,So I must get CharacterSet first.How to get CharacterSet of the attachment?
I want to show a message which iMtm is KUidMsgTypeBt.The mime type of attachment is "text/......" now.I want to convert to unicode,So I must get CharacterSet first.How to get CharacterSet of the attachment?
Last edited by wiso33; 2009-06-24 at 11:09.
AFAIK you can get the mime type, but then the document itself should indicate the encoding.
You can try if CCnvCharacterSetConverter::AutoDetectCharSetL can help you, but it would better to check the ...... part of your "text/......"
you could maybe check it and let us know whether it worked.
Then I assume that it is not really reliable way, so meybe you could just go what the Wizard suggested, and use CCnvCharacterSetConverter::AutoDetectCharSetL.