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"ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ"
Similar Kata:
Stats:
Created | Nov 8, 2016 |
Warriors Trained | 72 |
Total Skips | 2 |
Total Code Submissions | 424 |
Total Times Completed | 20 |
Python Completions | 20 |
Total Stars | 4 |
% of votes with a positive feedback rating | 63% of 12 |
Total "Very Satisfied" Votes | 6 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 12 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |