> -----Original Message-----
> On Behalf Of Ludwig, Michael
> Subject: PerlScript/ASP: Unicode issue

> And here's the dysfunctional PerlScript code I derived the 
> VBScript version from:
> 
> <%@ language=perlscript codepage=65001 %>
> <%
> use strict;
> use warnings;
> # use utf8; # messes up German and French as well
> use Win32::OLE;
> use constant DOMCLASS => "Msxml2.DOMDocument.6.0";
> our( $Server, $Response, $Request );
> my %OLEoptions = ( Warn => 3 );
> # $OLEoptions{CP} = Win32::OLE::CP_UTF8; # no effect
> Win32::OLE->Option( %OLEoptions );

One clarification for the archives:

While the effect of Win32::OLE->Option(CP => Win32::OLE::CP_UTF8)
was overridden in this case by the PerlScript engine eliminating
all characters not in ANSI (CP_ACP), as Jan explained in one of
his replies, it's not at all true that this option does not have
an effect in the general case as implied by my code sample; on
the contrary, it does work, and is essential for Unicode text
processing.
-- 
Michael Ludwig
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to