in reply to Re: Seeking Perl docs about how UTF8 flag propagates
in thread Seeking Perl docs about how UTF8 flag propagates
utf8::is_utf8 |
Indicates with internal storage format is used by a scalar. USE: Debugging XS modules. |
---|---|
utf8::upgrade |
Changes a scalar to use the upgraded string format (if it's not already) without changing the string.
USE: Working around instances of The Unicode Bug. |
utf8::downgrade |
Changes a scalar to use the downgraded string format (if it's not already) without changing the string. Dies if it can't.
USE: Working around instances of The Unicode Bug. |
utf8::encode |
Encodes a string using utf8. Expects a string of arbitrary characters in either storage format. Produces a string of 8-bit characters in the downgraded format. USE: You should probably be encoding using the standard UTF-8 encoding instead of the Perl-specific utf8 encoding. |
utf8::decode |
Decodes a string encoded using utf8. Dies if it can't. Expects a string of 8-bit characters in either storage format. Produces a string of characters in the upgraded format. USE: utf8 is a Perl-specific encoding. Are sure the text isn't encode using the standard UTF-8 encoding? |
Encode::is_utf8 |
Indicates with internal storage format is used by a scalar. USE: You might as well use the equivalent built-in utf8::is_utf8. |
Encode::_utf8_on |
Mostly equivalent to the following:
The difference is that it produces a corrupt scalar if the string isn't valid utf8. USE: Do not use as it introduces The Unicode Bug. |
Encode::_utf8_off |
Equivalent to the following:
USE: Do not use as it introduces The Unicode Bug. |
|
---|