You are viewing the version of this documentation from Perl 5.40.1. View the latest version

CONTENTS

NAME

encoding::warnings - Warn on implicit encoding conversions

VERSION

This document describes version 0.13 of encoding::warnings, released June 20, 2016.

NOTICE

As of Perl 5.26.0, this module has no effect. The internal Perl feature that was used to implement this module has been removed. In recent years, much work has been done on the Perl core to eliminate discrepancies in the treatment of upgraded versus downgraded strings. In addition, the encoding pragma, which caused many of the problems, is no longer supported. Thus, the warnings this module produced are no longer necessary.

Hence, if you load this module on Perl 5.26.0, you will get one warning that the module is no longer supported; and the module will do nothing thereafter.

SYNOPSIS

use encoding::warnings; # or 'FATAL' to raise fatal exceptions

utf8::encode($a = chr(20000));  # a byte-string (raw bytes)
$b = chr(20000);                # a unicode-string (wide characters)

# "Bytes implicitly upgraded into wide characters as iso-8859-1"
$c = $a . $b;

DESCRIPTION