Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by BrowserUk (Pope)
on Aug 16, 2012 at 18:20 UTC ( #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?

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-09-26 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (476 votes). Check out past polls.