Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by flexvault (Monsignor)
on Aug 16, 2012 at 17:38 UTC ( [id://987842]=note: print w/replies, xml ) Need Help??


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

BrowserUk,

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

    Until you apply some form of encode/decoding operation to a file or data stream, anything you read is just a bunch of bytes.
This was my take also!
    Unicode is a f*** up!
Agreed! I haven't looked at this much, but the spec says '22 bits', but Perl code seems to use '24 bits' for each character with the high-order bits being '00'. Whether other implementations do the same I don't know, but seems like too much room for mis-interpretation.

Thank you

"Well done is better than well said." - Benjamin Franklin

Replies are listed 'Best First'.
Re^7: Best technique to code/decode binary data for inter-machine communication?
by BrowserUk (Patriarch) on Aug 16, 2012 at 18:20 UTC
    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://987842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-03-19 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found