RE: PerlScript/ASP: Unicode issue

"Ludwig, Michael" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
> -----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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.