summaryrefslogtreecommitdiff
path: root/pod/perluniintro.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-20 00:55:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-20 00:55:54 +0000
commitb310b0538cc1a7948587a9e5ff30683fec2a3ece (patch)
treef3f8fa0dd8ad9ba1aecae60fa5a8079b3fb69237 /pod/perluniintro.pod
parent563aca73f1f51dd4b10089896b544a6ae41316cb (diff)
downloadperl-b310b0538cc1a7948587a9e5ff30683fec2a3ece.tar.gz
If it looks like UTF-8 (either nl_langinfo or locale variables),
think UTF-8, embrace your inner UTF-8, as suggested by Larry. (And as suggested by Markus Kuhn.) While we are at it, document also the case of mixed hash keys as a known potential troublemaker. (Since it's locale-related, sometimes.) p4raw-id: //depot/perl@15350
Diffstat (limited to 'pod/perluniintro.pod')
-rw-r--r--pod/perluniintro.pod5
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod
index c560723f80..dd3064f6bf 100644
--- a/pod/perluniintro.pod
+++ b/pod/perluniintro.pod
@@ -169,6 +169,11 @@ To output UTF-8 always, use the ":utf8" output discipline. Prepending
to this sample program ensures the output is completely UTF-8, and
of course, removes the warning.
+If your locale environment variables (LANGUAGE, LC_ALL, LC_CTYPE, LANG)
+contain the strings 'UTF-8' or 'UTF8' (case-insensitive matching),
+the default encoding of your STDIN, STDOUT, and STDERR, and of
+B<any subsequent file open>, is UTF-8.
+
=head2 Unicode and EBCDIC
Perl 5.8.0 also supports Unicode on EBCDIC platforms. There,