Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

"ISO-8859-1 0x80-0xFF" and chr()

by remiah (Hermit)
on Mar 23, 2012 at 10:50 UTC ( #961193=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    #encode char to byte for print
    print encode('UTF-8', $decoded)
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    #encode char to byte for print
    print encode('UTF-8', $decoded);
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    #now you can encode char to byte for print
    print encode('UTF-8', $chr);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://961193]
Approved by marto
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-06-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?