develooper Front page | perl.perl5.porters | Postings from March 2007

Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)

Thread Previous | Thread Next
From:
Tels
Date:
March 30, 2007 17:15
Subject:
Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)
Message ID:
200703310215.43903@bloodgate.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Moin,

On Saturday 31 March 2007 00:04:53 Juerd Waalboer wrote:
> Marc Lehmann skribis 2007-03-31  1:33 (+0200):
> > The difference between us, and thats what it boils down to, is that you
> > give the internal UTF-X bit meaning. You equate UTF-X flag set ==
> > Unicode string.
>
> No, that's a unidirectional thing.
>
> I've said it on p5p at least a dozen times, but I'll say it again:
>
> If the UTF8 flag is set, you can be sure that you have a text string.
> If the UTF8 flag is not set, it can be either a byte string or a text
> string.
>
> If you have a text string, the UTF8 flag may or not be set. 

So you are basically saying that you can have any string (text or byte) with 
either the flag set, or not. Er, and how do we find out which combination 
is which?

I think we all should go to bed and have a nice rest. What you wrote above 
makes no sense at all to me now anymore.

So, good night for now,

Te"pls don't tell mom it's 2 already"ls

- -- 
 Signed on Sat Mar 31 02:12:15 2007 with key 0x93B84C15.
 Get one of my photo posters: http://bloodgate.com/posters
 PGP key on http://bloodgate.com/tels.asc or per email.

 Like my code? Want to hire me to write some code for you? Send email!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iQEVAwUBRg3ET3cLPEOTuEwVAQJ7QQf/QmX+IUIaVxgJMSfCrGFnQDRlXzKEHXBk
fIsz1cCNmwPeRJsskLxxkRsC2TlufgccRx3RSN0HcI56l79ldBAvN7uqNgRHEZ2x
JRsIFdT6B13YPFwjAsnSNwl9kIYoRmaXVsFugQELqIbKAKqe/7BGCgnG9qLfN8a0
n6+T3tbpoyWL5MWcDGi6Z+r+GL3bb3GQQQY9GHa4sNU5aWsDcdEOTM9g9KKgINY1
0OIt5nXxPjLEcpOsuqxFA/Xk9kA/EPr/oz4VpZN+9WlahBkL31BJ5Vb3QjbC6eo5
amOAJ+qg04jFu2rLTMBtjunc+/Hvebiz8JsK1Bcb5VeG3GEJKKRTRw==
=2fEH
-----END PGP SIGNATURE-----

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About