in reply to Win32::OLE and character sets

The Win32:OLE module documentation describes this behavior. Of particular interest to you might be Win32::OLE->Option() which will allow you to change the code page translation between Perl and the OLE object (setting the CP option).

-HZ

Replies are listed 'Best First'.
Re: Re: Win32::OLE and character sets
by John M. Dlugosz (Monsignor) on Jul 24, 2001 at 18:45 UTC
    use v5.6.1; use strict; use warnings; use utf8; use Win32::OLE; use Carp; Win32::OLE->Option (CP => Win32::OLE::CP_UTF8);
    I don't think I missed anything.

    The strings gotten from OLE are indeed UTF8-encoded, but they are still marked as having byte orientation!

    Now that's arguably a bug.

    —John

Re: Re: Win32::OLE and character sets
by John M. Dlugosz (Monsignor) on Jul 24, 2001 at 10:09 UTC
    Thanks. I'll have to go through the docs again from the top. I seem to have missed that when I re-read them last week.