logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PerlIO::utf8_strict - Fast and correct UTF-8 IO

Authors

• Leon Timmermans <leont@cpan.org> • Christian Hansen <chansen@cpan.org>

Description

This module provides a fast and correct UTF-8 PerlIO layer. Unlike perl's default ":utf8" layer it checks the input for correctness.

Diagnostics

Can't decode ill-formed UTF-8 octet sequence <%s> (F) Encountered an ill-formed UTF-8 octet sequence. <%s> contains a hexadecimal representation of the maximal subpart of the ill-formed subsequence. Can't interchange noncharacter code point U+%.4X (F) Noncharacters is permanently reserved for internal use and that should never be interchanged. Noncharacters consist of the values U+nFFFE and U+nFFFF (where n is from 0 to 10^16) and the values U+FDD0..U+FDEF.

Export

PerlIO::utf8_strict exports no subroutines or symbols, just a perl layer "utf8_strict"

Layer Arguments

allow_noncharacters allow_surrogates

Name

PerlIO::utf8_strict - Fast and correct UTF-8 IO

Synopsis

open my $fh, '<:utf8_strict', $filename;

Version

version 0.010

See Also