p5-encode
p5-encode copied to clipboard
Noncharacters should be allowed
According to Corrigendum #9, noncharacters (the values U+nFFFE and U+nFFFF (where n is from 0 to 10^16) and the values U+FDD0..U+FDEF) are permanently reserved but should be allowed in interchange.
These codepoints currently are not successfully encoded or decoded - by default, they are replaced by replacement characters (at least for UTF-8).
Related: https://github.com/chansen/p5-unicode-utf8/issues/7
Probably, this behavior should be an option, regardless of what's the default