Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Read and write UTF-8

by choroba (Cardinal)
on Oct 18, 2016 at 10:08 UTC ( [id://1174191]=note: print w/replies, xml ) Need Help??


in reply to Re: Read and write UTF-8
in thread Read and write UTF-8

Note that UTF8 and UTF-8 aren't equivalent:
 $ perl -lwE 'binmode STDOUT, ":encoding(UTF8)"; print chr 10240000;'
Code point 0x9C4000 is not Unicode, may not be portable at -e line 1.
�����
 $ perl -lwE 'binmode STDOUT, ":encoding(UTF-8)"; print chr 10240000;'
Code point 0x9C4000 is not Unicode, may not be portable at -e line 1.
"\x{9c4000}" does not map to utf8 at -e line 1.
\x{9C4000}

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found