[Catalyst] create search engine friendly uri from string

Moritz Onken onken at houseofdesign.de
Tue Dec 16 17:17:41 GMT 2008


>
> I have tried:
>
> use strict;
> use Search::Tools::Transliterate;
> use utf8;
>
> my $tr = Search::Tools::Transliterate->new;
> $tr->ebit(0);
> print $tr->convert("ăşţâîĂŞŢÂÎ????");
>
> #It prints:
> astâîASTÂÎ????
>
> I want to print ai instead of âî and AI instead of ÂÎ. Am I using  
> $tr->ebit correctly?
>
> The latest 4 chars are 4 new UTF-8 chars in romanian language (U 
> +0218, U+0219, U+021A, U+021B). Can they be transliterated?
> They are şŞţŢ but with a comma below, and not with a sedila. Can  
> they be displayed as sStT?

Did you have those problems with Text::Unidecode, too?


More information about the Catalyst mailing list