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

7stud
Enthusiast
Mar 28, 2010, 11:24 PM
Views: 3698
|
|
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
|
|
|  |