Dear Perl Win32 mailing list users,

I am looking for the value of msoEncodingUTF8 but can't seem to find
how to pull it in using Win32::OLE::Const. I only found one
useful-looking page on the web,

http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-users/690195

but unfortunately there is a typo or something in that message and the
suggested way doesn't work.

I also tried using

use Win32::OLE::Const 'Microsoft Office';

since I guess that mso stands for "Microsoft Office", but this doesn't
work either.

From

http://msdn.microsoft.com/en-us/library/aa432511.aspx

I found that the numerical value of msoEncodingUTF8 is 65001, so I got
my Perl code to work using something like this:

    $document->SaveAs({FileName   => $txt,
                       FileFormat => wdFormatText,
                       # Bug: I can't find where msoEncodingUTF8 lives.
                       Encoding => 65001});#msoEncodingUTF8});

But I wonder where I can find the numbers for msoEncoding values, in
case I need to change this in the future, or in case Microsoft changes
the numerical value.

Thank you for any assistance.

Ben Bullock
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to