Perl 5.16 vs Ruby 2.0 UTF-8 support

Paul Makepeace paulm at paulm.com
Thu Aug 22 18:19:38 BST 2013


On Thu, Aug 22, 2013 at 9:15 AM, gvim <gvimrc at gmail.com> wrote:

> On 22/08/2013 17:05, Paul Makepeace wrote:
>
>  How about when you hexdump it?
>>
>>
> I wouldn't know but here's the result of hexdump -C (literal text removed
> from line end):


You're looking for high bits in the characters, as a first pass. High bit
is 0x80-0xff,

$ perl -lane 'shift @F; print if "@F" =~ /\b[89a-f]/i' < dump
00000560  75 67 68 74 20 66 6f 72  20 75 6e 64 65 72 20 a3

Paul


More information about the london.pm mailing list