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

Re^7: Best technique to code/decode binary data for inter-machine communication?

by BrowserUk (Patriarch)
on Aug 16, 2012 at 18:20 UTC ( [id://987851]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Best technique to code/decode binary data for inter-machine communication?
in thread Best technique to code/decode binary data for inter-machine communication?

I like that shorthand format, N/(N/a*)* and N/(n/a*)* , look very flexible for future encoding/decoding uses.

See also Mystery! Logical explanation or just Satan's work?.

the spec says '22 bits', but Perl code seems to use '24 bits' for each character with the high-order bits being '00'.

utf-8 is a variable width encoding. Each character can require from 1 to 4(*) bytes.

(*Or 6 bytes depending upon the wind direction and the phases of the moon(**).)

<smaller>(**which moon is left unspecified :)</smaller>


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found