in reply to utf8/yui/json/ajax/plack troubles

I didn’t read for comprehension but noticed this–

   100 | Colm Tóibín | COLM TóIBíN

–upon which you remarked, so far so good. It’s wrong of course. It should read TÓIBÍN and would if your strings were properly decoded prior to the uc operation. So regardless of anything else that’s going wrong, the population of your $data is broken.

use warnings; use strict; use Encode; use open qw( :std :utf8 ); my $start = "Colm Tóibín"; print decode("UTF-8", uc $start), $/; print uc decode("UTF-8", $start), $/; __END__ COLM TóIBíN COLM TÓIBÍN

Replies are listed 'Best First'.
Re^2: utf8/yui/json/ajax/plack troubles
by ron.savage (Acolyte) on Jun 20, 2012 at 04:05 UTC
    Hi Hehehe. I know. But that wasn't the question. Thanx anyway. Cheers Ron