Re: [Catalyst] Re: utf8 in regexes in Catalyst

2008-03-03 Thread Matt Lawrence
Aristotle Pagaltzis wrote: So for that one-liner, you do this: echo 'é' | perl -MEncode -e '$_ = decode 'UTF-8', scalar ; print /\w/' Yes, this is tedious. So what you do is you find ways to get the parts of your program that speak to the outside world to decode input on receipt and encode

Re: [Catalyst] Re: utf8 in regexes in Catalyst

2008-03-03 Thread Jonathan Rockway
* On Mon, Mar 03 2008, Matt Lawrence wrote: See also the PERL_UNICODE environment variable, documented in man perlrun. No, don't do that. Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] utf8 in regexes in Catalyst

2008-03-03 Thread Jonathan Rockway
* On Sun, Mar 02 2008, Jonathan Rockway wrote: Correctly decoded data: perl -MDevel::Peek -e 'my $data = ほげ; utf8::decode($data); Dump($data)' SV = PV(0x72b098) at 0x72e3e0 REFCNT = 1 FLAGS = (PADMY,POK,pPOK,UTF8) PV = 0x73aa40 \343\201\273\343\201\222\0 [UTF8