From: Nicholas Clark Date: Fri, 16 Jul 2004 13:21:33 +0000 (+0000) Subject: Typo fix from Julian Gilbey, forwarded upstream from Debian by X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb2f379c4efa4641a7ec56364e78a5483eb0b2e2;p=p5sagit%2Fp5-mst-13.2.git Typo fix from Julian Gilbey, forwarded upstream from Debian by Brendan O'Dea p4raw-id: //depot/perl@23129 --- diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod index 19bc82e..81efd6b 100644 --- a/pod/perluniintro.pod +++ b/pod/perluniintro.pod @@ -668,8 +668,8 @@ How Do I Detect Data That's Not Valid In a Particular Encoding? Use the C package to try converting it. For example, - use Encode 'encode_utf8'; - if (encode_utf8($string_of_bytes_that_I_think_is_utf8)) { + use Encode 'decode_utf8'; + if (decode_utf8($string_of_bytes_that_I_think_is_utf8)) { # valid } else { # invalid