Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Win32::OLE with non-ANSI data (use Win32::OLE qw(CP_UTF8);

by Anonymous Monk
on Mar 26, 2022 at 09:39 UTC ( [id://11142427]=note: print w/replies, xml ) Need Help??


in reply to Win32::OLE with non-ANSI data

Re: Using Win32::OLE and Excel - Tips and Tricks Win32::OLE SAPI.SpVoice Japanese
Win32::OLE->Option (CP => Win32::OLE::CP_UTF8); use Win32::OLE qw(CP_UTF8);

Replies are listed 'Best First'.
Re^2: Win32::OLE with non-ANSI data (use Win32::OLE qw(CP_UTF8);
by freonpsandoz (Beadle) on Mar 27, 2022 at 05:22 UTC

    Thanks, that seems to have worked.

Re^2: Win32::OLE with non-ANSI data (use Win32::OLE qw(CP_UTF8);
by freonpsandoz (Beadle) on Mar 29, 2022 at 03:18 UTC

    Reading the Win32::OLE CP option documentation more carefully, I see why I was confused. It refers to "translations between Perl strings and Unicode strings," but it really means "translations between octets and OLE Unicode strings," doesn't it? Does the CP_UTF8 option mean "strings that are in Perl's internal representation," or should Perl strings be encoded to and decoded from UTF-8 octets when passing data to/from this interface? Thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found