Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: utf8 bloody chars

by shmem (Chancellor)
on Oct 18, 2015 at 10:00 UTC ( #1145251=note: print w/replies, xml ) Need Help??


in reply to utf8 bloody chars

To interpolate unicode chars into strings you can use also

print "Greek letter here \x{03c9}\n"; print "Greek letter here \N{U+03c9}\n"; print "Greek letter here \N{GREEK SMALL LETTER OMEGA}\n";

as stated in perlunicode. If you get the warning Wide character in print, use the -C command line switch at least as -CO (that's an 'oh', not a zero :-). See perlrun.

You can find official unicode character names at decodeunicode.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: utf8 bloody chars
by AppleFritter (Vicar) on Oct 18, 2015 at 10:11 UTC
Re^2: utf8 bloody chars
by moritz (Cardinal) on Oct 20, 2015 at 10:33 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-02-04 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?