Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / April 2004

Tip: Looking for answers? Try searching our database.

Display a post in the correct character set

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Smith - 22 Apr 2004 17:24 GMT
Hi All -

I've got a COM add-in which is reading messages from an external source
and creating PostItems in Outlook. Some of them might be in different charsets
- e.g. KOI8-R, Russian, etc.
I can work out which codepage these should be and then I set pr_internet_cpid,
0x3FDE0003, (for KOI8-R I set it to 20866). This doesn't seems to make
any difference. I've also tried pr_message_codepage, 0x3FFD0003, and that
doesn't make a difference either, nor does setting both of them.

What am I missing?

Thanks -

--
Simon Smith
simon dot s at ghytred dot com
Dmitry Streblechenko \(MVP\) - 22 Apr 2004 17:29 GMT
Are you setting the plain text body or RTF? Try setting PR_RTF_COMPRESSED
and make sure "\ansicpg" RTF tag is set correctly.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi All -
>
[quoted text clipped - 13 lines]
> Simon Smith
> simon dot s at ghytred dot com
Simon Smith - 26 Apr 2004 11:11 GMT
Thanks Dmitry -

I was hoping not to have to do that, but it looks as though I will after
all.
One followup, though. Will this affect the display of the subject? That
appears wrong even when the message is rendered correctly.

Thanks -

>Are you setting the plain text body or RTF? Try setting PR_RTF_COMPRESSED
>and make sure "\ansicpg" RTF tag is set correctly.
[quoted text clipped - 17 lines]
>>
>> What am I missing?
Dmitry Streblechenko \(MVP\) - 27 Apr 2004 07:26 GMT
For the subject you need to set PR_SUBJECT_A to a string returned by
WideCharToMultiByte and set the PR_INTERNET_CPID to the correct locale.
In Outlook 2003 (it is the first fully Unicode awareOutlook version) you can
simply set the PR_SUBJECT_W property if a user if using the new Unicode
enabled PST or Exchange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Thanks Dmitry -
>
[quoted text clipped - 26 lines]
> >>
> >> What am I missing?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.