Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by wyt248er (Initiate)
on Oct 25, 2021 at 04:34 UTC ( [id://11137992]=note: print w/replies, xml ) Need Help??


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 (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-25 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found