Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Is utf8, ascii ?

by rootcho (Pilgrim)
on Aug 07, 2007 at 19:38 UTC ( [id://631125]=note: print w/replies, xml ) Need Help??


in reply to Re: Is utf8, ascii ?
in thread Is utf8, ascii ?

I see.
I'm new to these encode stuff, but now I understand... check, guess try to encode, if not discard.
At the moment I want just to discard, later when I have time will do more tests
But my next question was... if I check for valid utf8 string and discard. Will this discard the string if it is ascii ?

Replies are listed 'Best First'.
Re^3: Is utf8, ascii ?
by clinton (Priest) on Aug 07, 2007 at 19:43 UTC
    No. U+0000 to U+007F (the first 128 Unicode characters) are represented in UTF8 by one byte - the same byte that is used in ASCII. So ASCII (7 bit ASCII, not eg ISO-8859-* or WINDOWS-1252) is a subset of UTF8.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found