diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-31 02:19:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-31 02:19:49 +0000 |
commit | 1768d7ebbd79c945a432bd18f2f9bed6d1a79356 (patch) | |
tree | 45fd01fd5766e85d54664e7356614489b9489dbb /pod | |
parent | d0e98d276e2cc7fdcdfbde4dabbc0843fb890ac7 (diff) | |
download | perl-1768d7ebbd79c945a432bd18f2f9bed6d1a79356.tar.gz |
More documentation for the encode pragma.
p4raw-id: //depot/perl@12785
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlapi.pod | 8 | ||||
-rw-r--r-- | pod/perlunicode.pod | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 516b2e7243..89894fcd36 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -3669,13 +3669,13 @@ of the sv is assumed to be octets in that encoding, and the sv will be converted into Unicode (and UTF-8). If the sv already is UTF-8 (or if it is not POK), or if the encoding -is not an object, nothing is done to the sv. - -If the encoding is not Encode object, bad things happen. +is not a reference, nothing is done to the sv. If the encoding is not +an C<Encode::XS> Encoding object, bad things will happen. +(See F<lib/encoding.pm> and L<Encode>). The PV of the sv is returned. - void sv_recode_to_utf8(SV* sv, SV *encoding) + char* sv_recode_to_utf8(SV* sv, SV *encoding) =for hackers Found in file sv.c diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index 9205fdf77c..273cce0026 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -52,6 +52,9 @@ ASCII based machines or recognize UTF-EBCDIC on EBCDIC based machines. B<NOTE: this should be the only place where an explicit C<use utf8> is needed>. +You can also use the C<encoding> pragma to change the default encoding +of the whole script; see L<encoding>. + =back =head2 Byte and Character semantics |