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 to the Perl interpreter. So any characters not in CP_ACP will already be replaced by '?' by the time the Perl parser reads the code. There is nothing you can do at the Perl level to get it working, as the replacement character business is not reversible (many different characters all get mapped to the same replacement character). The only ways around it are to use \x{....} to specify the Unicode codepoints in hex, or \N{...} to use codepoint names. Alternatively you could read the text from an external file at runtime, but that pretty much doesn't fit the ASP style to mix everything in a single file. Cheers, -Jan _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs