Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Intra-Unicode Conversions

by robartes (Priest)
on Nov 15, 2006 at 14:51 UTC ( [id://584165]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Codepoint U+00A4 --> hex 0xA4 --> binary 10100100
    
    ...
    110 00010 10 100100
    
    So U+00A4 in UTF-8 becomes 1100010 10100100 or 0xc2 0xa4.
    
  2. or download this
    sprintf("%c%c", 
    
    ...
    # with the lower 6 bits of the character (obtained by
    # AND'ing with 0x3f, 00011111)
              (0x80 | ($o & 0x3f))
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-25 03:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found