Michael Ludwig schrieb am 13.10.2010 um 21:31 (+0200): > Just to prove this is *not* related to MSXML (and who would have > thought it was?), here's a repro of the Perl script I posted earlier > in JScript (WSF), which does *not* exhibit the Perl or Win32::OLE > behaviour of opportunistically switching the output to another > encoding, but works comme il faut:
> T:\MiLu :: cscript sz.wsf > <U><E>eins</E></U> > > <U><E>eins</E><E>blöd</E></U> > > <U><E>eins</E><E>blöd</E><E>weiß</E></U> > > <U><E>eins</E><E>blöd</E><E>weiß</E><E>café</E></U> > > <U><E>eins</E><E>blöd</E><E>weiß</E><E>café</E><E>ανεργία</E></U> This might not prove anything, after all; cscript plus the Windows console might be playing clever tricks to make the output look right, and frankly, I have no idea how that combo works (I'd like to know, though), but it seems to be rather clever: the output looks correct regardless of the CHCP setting in my cmd.exe console window. So my JScript/WSF experiment doesn't really support the point I'm trying to make (that Perl or Win32::OLE are to blame), but I still presume that point to be correct: JScript gets it right, and Perl doesn't. -- Michael Ludwig _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
