p4raw-id: //depot/perlio@8925
sub toUnicode
{
my ($obj,$octets,$chk) = @_;
- my $str = decode_utf8($octets);
+ my $str = Encode::decode_utf8($octets);
if (defined $str)
{
$_[1] = '' if $chk;
sub fromUnicode
{
my ($obj,$string,$chk) = @_;
- my $octets = encode_utf8($string);
+ my $octets = Encode::encode_utf8($string);
$_[1] = '' if $chk;
return $octets;
-
}
-*fromUnicode = \&toUnicode;
-
package Encode::Table;
sub read
1;
+__END__
+
=head1 NAME
Encode - character encodings
=cut
-__END__
+