Clarify the difference between utf8::downgrade/upgrade
[p5sagit/p5-mst-13.2.git] / pod / perluniintro.pod
index 71d0e57..6a9d4b0 100644 (file)
@@ -299,8 +299,8 @@ If that variable isn't set, the encoding pragma will fail.
 The C<Encode> module knows about many encodings and has interfaces
 for doing conversions between those encodings:
 
-    use Encode 'from_to';
-    from_to($data, "iso-8859-3", "utf-8"); # from legacy to utf-8
+    use Encode 'decode';
+    $data = decode("iso-8859-3", $data); # convert from legacy to utf-8
 
 =head2 Unicode I/O