diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-15 21:19:37 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-15 21:19:37 +0000 |
commit | a05d7ebb5e798334196e3cff205b658506cc4384 (patch) | |
tree | 0146d20f2a85eeb407ef0d67305028aee32c79fc /pod/perluniintro.pod | |
parent | eadddfac8c84315d3b083947a75b271e6d6b7754 (diff) | |
download | perl-a05d7ebb5e798334196e3cff205b658506cc4384.tar.gz |
The new(er) way of controlling Unicode I/O (and other) features;
-C (or PERL_UNICODE). See perlrun/-C for more details.
p4raw-id: //depot/perl@18715
Diffstat (limited to 'pod/perluniintro.pod')
-rw-r--r-- | pod/perluniintro.pod | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod index 4e52a58d4c..33400fc7b6 100644 --- a/pod/perluniintro.pod +++ b/pod/perluniintro.pod @@ -175,13 +175,14 @@ and removes the program's warning. If your locale environment variables (C<LC_ALL>, C<LC_CTYPE>, C<LANG>) contain the strings 'UTF-8' or 'UTF8' (matched case-insensitively) B<and> you enable using UTF-8 either by using the C<-C> command line -switch or by setting the PERL_UTF8_LOCALE environment variable to -a true value, then the default encoding of your STDIN, STDOUT, and -STDERR, and of B<any subsequent file open>, is UTF-8. Note that this -means that Perl expects other software to work, too: if Perl has been -led to believe that STDIN should be UTF-8, but then STDIN coming in -from another command is not UTF-8, Perl will complain about the -malformed UTF-8. +switch or by setting the PERL_UNICODE environment variable to an empty +string, C<"">, (see L<perlrun> and the documentation for the C<-C> +switch for more information about the possible values), then the +default encoding of your STDIN, STDOUT, and STDERR, and of B<any +subsequent file open>, will be UTF-8. Note that this means that Perl +expects other software to work, too: if Perl has been led to believe +that STDIN should be UTF-8, but then STDIN coming in from another +command is not UTF-8, Perl will complain about the malformed UTF-8. All features that combine Unicode and I/O also require using the new PerlIO feature. Almost all Perl 5.8 platforms do use PerlIO, though: |