List Info

Thread: Re: the utf8 flag (was Re: decode_utf8 sets utf8 flag on plain ascii strings)




Re: the utf8 flag (was Re: decode_utf8 sets utf8 flag on plain ascii strings)
user name
2007-03-30 19:36:35
Marc Lehmann skribis 2007-03-31  2:20 (+0200):
> But in fact, if you try it, nothing will get corrupted
unless you use
> unpack "C" to get the first byte of your
KOI8-string. Then you might get
> surprised (current perl) or an exception (Juerd's
idea).

Sigh...

It'll work just fine if the string is still a byte string,
which it will
be if you cared to keep it separated.
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  <juerdjuerd.nl>  <http://juerd.nl/sig>
  convolution:     ict solutions and consultancy
<salesconvolution.nl>

Ik vertrouw stemcomputers niet.
Zie <ht
tp://www.wijvertrouwenstemcomputersniet.nl/>.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )