in reply to :utf8 I/O layer vs encoding(UTF8), segfault and speed
1. what exactly is the difference between :utf8 and :encoding(UTF8)
What exactly isn't clear about that?
Properly decoding/validating of course takes time. OTOH, if you let perl work with unvalidated 'UTF-8' strings, nasty things can happen (including segfaults), because Perl's unicode internals have not been implemented to handle this safely in each and every case... Strings which are not properly encoded in UTF-8 should not have the utf8 flag on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: :utf8 I/O layer vs encoding(UTF8), segfault and speed
by mje (Curate) on Apr 01, 2009 at 18:55 UTC | |
by almut (Canon) on Apr 01, 2009 at 19:22 UTC | |
by mje (Curate) on Apr 01, 2009 at 19:34 UTC | |
by almut (Canon) on Apr 01, 2009 at 19:44 UTC |