);
}
Considering the relative complexities of the approaches and the
fact that conservation of filehandle state is not a concern in
your case, I know which solution *I* would favour…
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Michael Ludwig michael.lud...@xing.com [2010-02-02 17:35]:
use encoding 'utf8';
The `encoding` pragma is broken. Do not use it.
You want
use open ':encoding(UTF-8)', ':std';
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
it.
What's your advice for handling this situation more elegantly?
Use the \U escape to indicate that you always mean a Unicode code
point. Due to other quirks in how \U is implemented, it ends up
not triggering the bug that \x would.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
Hi Michael,
I just noticed I never replied to this…
* Michael Ludwig michael.lud...@xing.com [2010-03-08 15:50]:
Am 07.03.2010 um 07:39 schrieb Aristotle Pagaltzis:
Use the \U escape to indicate that you always mean a Unicode
code point. Due to other quirks in how \U is implemented, it
ends
they contain the
same data. By upgrading your strings, you make sure that you get
Unicode semantics consistently.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
,
--
Aristotle Pagaltzis // http://plasmasturm.org/
that fall outside the Latin-1 charset.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
there will be able to tell you what’s up with this.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
is supposed to
represent an octet sequence already).
Notably absent in both cases: any dependence on the state of the
UTF8 flag of the string.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
) encoding anything.
You want `:encoding(UTF-8)`.
--
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1}
Just-another-Perl-hack;
#Aristotle Pagaltzis // http://plasmasturm.org/
-Perl-hack;
#Aristotle Pagaltzis // http://plasmasturm.org/
utf8`. So no there is
no replacement for that aspect of the `encoding` pragma coming
down the pipe either, now or ever.)
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
::Unicode`.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
invalid data
then all you get is a false return value and no other help. If you need
anything else you pay the memory and take the speed hit of Encode.pm.
(If you are working on a large application, chances are high that you
have Encode.pm loaded anyway.)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
wrappers around code ultimately from sv.c.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
* Karl Williamson [2016-08-21 03:12]:
> That should be done anyway to make sure we've got less buggy Unicode
> handling code available to older modules.
I think you meant “available to older perls”?
hat “perl knows what
I put in there so it should know to set the UTF8 flag on it” not apply
to this?
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
17 matches
Mail list logo