PerlIO::utf8_strict(3) User Contributed Perl Documentation PerlIO::utf8_strict(3)

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

version 0.010

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

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

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

(F) Encountered an ill-formed UTF-8 octet sequence. <%s> contains a hexadecimal representation of the maximal subpart of the ill-formed subsequence.
(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.

  • Leon Timmermans <>
  • Christian Hansen <>

This software is copyright (c) 2012 by Leon Timmermans, Christian Hansen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2023-07-26 perl v5.38.0