On Wed, Mar 31, 2004 at 10:52:10PM +0100, Nick Ing-Simmons wrote:
: >Is there at all any possibility to feed Perl a script that has been
: >saved in UTF-16? (Which is how you normally save Unicode on Windows.)
: 
: Perl5's assumption is that Unicode is saved as UTF-8.
: For Perl6 ask elsewhere ...

Perl 6 will assume that script is in some kind of recognizable Unicode
encoding, any of:

    UTF-8
    UTF-16
    UTF-32
    SCSU

Of those, probably only SCSU requires a BOM, since Perl scripts are almost
certain to be strict ASCII in the first few bytes where it matters.

If it starts parsing as UTF-8, and runs into trouble, it might or might
not try to intuit the real encoding.  Haven't really decided that yet.

You can always explicitly switch the encoding with "use encoding" or
some such.

Larry

Reply via email to