Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: utf8 bloody chars

by shmem (Chancellor)
on Oct 18, 2015 at 10:00 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found