RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > Subject: RE: PerlScript/ASP: Unicode issue > > 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 i

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Jan Dubois
On Mon, 13 Sep 2010, Ludwig, Michael wrote: > > -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: > >

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -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;

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > Is it %ActivePerl%\bin\PerlSE.dll implementing PerlScript? > > Yes. There isn't anything you can do with it directly > though; it is a registered COM component that must be > instantiated via COM

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > > > VBS generates a perfect document, but my PerlScript-ASP messes up > > Greek and Russian. > > The problem is the PerlScript engine. It does not support > source code encoded in UTF-8; all sourc

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Jan Dubois
On Fri, 10 Sep 2010, Ludwig, Michael wrote: > Is it %ActivePerl%\bin\PerlSE.dll implementing PerlScript? Yes. There isn't anything you can do with it directly though; it is a registered COM component that must be instantiated via COM as an ActiveX Scripting Engine... All scripting hosts (e.g. AS

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Jan Dubois
On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > VBS generates a perfect document, but my PerlScript-ASP messes up > Greek and Russian. The problem is the PerlScript engine. It does not support source code encoded in UTF-8; all sources will be converted into the ANSI codepage before being passed

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
> -Original Message- > On Behalf Of Ludwig, Michael > Sent: Friday, September 10, 2010 4:09 PM > Subject: PerlScript/ASP: Unicode issue > What's wrong with my code? Or am I running into some > PerlScript engine or COM interop limitation? I completely forgot

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
> Okay, sorry for the long-winded XML examples (maybe they'll > be useful for future generations); I stripped down the > example to plain text, which exposes the problem: [PerlScript snipped] > Süße Ödnis statt ärgerem Übel. > D'où vient que ça m'est égal? > St? 11,6% ? a?e???a t?? ?? > ???

PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
Here's a document containing some non-ASCII text. Süße Ödnis statt ärgerem Übel. D'où vient que ça m'est égal? Στο 11,6% η ανεργία τον Ιούνιο Реальная погода в Москве Here's the VBSript/ASP that generated it: <%@ language=vbscript codepage=65001 %> <% Option Explicit Function NewDom()