Retired

Those élégantes unïcôdes, hiding in code wars... (retired)

Description:

Developers tend to code in english (read: 'ascii') but -unfortunately- they sometimes have to take into account some weird desire (read: 'command') from their clients.

which includes ù ö à ç & Co

Unicodes are supposed to save us.

But they don't really succeed... even up here in the battle fields of code wars, where you will have trouble setting up your kata to be compliant with python 2 & 3 as soon as unicodes appear

Your mission, would you accept it, is straightforward: get 'read' of them.

You will be passed some random ranges of random chars (unicode). Just convert them to simple nice and crystal clear plain ascii-compliant characters (but still as unicode, remember: they are here to save us!).

asciify(u"été") -> u"ete"
asciify(u"Ça sent Noël") -> u"Ca sent Noel"

As a hint, you might be interested in the list of those evil unichars: u"ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ"

Unicode
Fundamentals

More By Author:

Check out these other kata created by ebreton

Stats:

CreatedNov 8, 2016
Warriors Trained72
Total Skips2
Total Code Submissions424
Total Times Completed20
Python Completions20
Total Stars4
% of votes with a positive feedback rating63% of 12
Total "Very Satisfied" Votes6
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes3
Total Rank Assessments12
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • ebreton Avatar
Ad