in reply to Re: How to convert between Unicode codepoint and UTF8 character code on Perl?
in thread How to convert between Unicode codepoint and UTF8 character code on Perl?

@hippo

The version of my perl is above 5.8, and hence it can surely handle Unicode. However, it does not have the Unicode module. So, `use Unicode::Char;` returns an error "Can't locate Unicode/Char.pm in @INC". Also `use Unicode;` returns an error "Can't locate Unicode.pm in @INC".

Can you modify your subroutine `to_bytes` so that it will not use the Unicode module?

Thank you.

  • Comment on Re^2: How to convert between Unicode codepoint and UTF8 character code on Perl?

Replies are listed 'Best First'.
Re^3: How to convert between Unicode codepoint and UTF8 character code on Perl?
by hippo (Archbishop) on Oct 25, 2021 at 10:19 UTC
    Can you modify your subroutine `to_bytes` so that it will not use the Unicode module?

    Indeed I can but there is no reason why I should since Unicode::Char is publicly available for you to download and install. See Installing Modules if you do not know how to go about that.


    🦛

Re^3: How to convert between Unicode codepoint and UTF8 character code on Perl?
by Anonymous Monk on Oct 25, 2021 at 07:38 UTC