diff options
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 |