CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [JonathanPool] hex metacharacters for characters below x100: Edit Log



7stud
Enthusiast

Mar 28, 2010, 11:24 PM


Views: 5616
Re: [JonathanPool] hex metacharacters for characters below x100

As I understand it, all perl strings have a UTF-8 flag, which is either on or off. perl tries to store strings as ascii characters(single byte) as long as it can, then perl turns the UTF-8 flag on when it realizes there are multi-byte characters present.

In my opinion, the docs are poorly written because they seem to use the terms Unicode and UTF-8 as if they are equivalent--and they are different things. A case in point is your quote. I think that quote is referring to the Unicode code point. 2**31 is roughly the highest integer that can be represented by 4 bytes (= 32 bits).


(This post was edited by 7stud on Mar 28, 2010, 11:31 PM)


Edit Log:
Post edited by 7stud (Enthusiast) on Mar 28, 2010, 11:26 PM
Post edited by 7stud (Enthusiast) on Mar 28, 2010, 11:29 PM
Post edited by 7stud (Enthusiast) on Mar 28, 2010, 11:31 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives