Keep It Simple, Stupid | |
PerlMonks |
Re: Polish textby 1nickt (Canon) |
on Jan 03, 2021 at 20:02 UTC ( [id://11126232]=note: print w/replies, xml ) | Need Help?? |
Hi Shmunzie, try this:
perl -MEncode -E 'my $text="żłóBżE"; $text = decode_utf8($text); say length($text); say encode_utf8(uc($text))' (Note: As pointed out earlier you did not specify the encoding you have your text in, this assumes utf8 for which Encode provides sugar functions.)
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|