RE: PerlScript/ASP: Unicode issue

"Ludwig, Michael" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
> -----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 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).

Thanks. That statement is as clear as can be. Once we know
what's up it's easier to deal with it.

> 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.

My example was just that, an example. The external file
alternative fits my intended setup more closely. I only
wanted to know what can work and what won't. Thanks!

Best,

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.