Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Win32::OLE and character sets

by HyperZonk (Friar)
on Jul 24, 2001 at 03:14 UTC ( [id://99198]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99198]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-23 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found