Hello List,<br>i am trying to convert local Swedish daynames to ASCII<br><br>"Måndag" should become "Mandag"<br>"Lördag" should become "Lordag"<br>"Söndag" should become "Sondag"
<br><br>here is my session<br><br>import locale<br>locale.setlocale(locale.LC_ALL, 'sv_Se')<br>datetime.date(2006, 06, 19).strftime("%A")<br>'M\xc3\xa5ndag'<br>datetime.date(2006, 06, 19).strftime("%A").decode('utf8').encode('ascii','ignore')
<br>'Mndag'<br><br>Somehow, the Swedish character "å" gets dropped in the conversion to ascii. <br>how can I accomplish the conversion 'å' --> 'a' etc.? should I use a dictionary?<br>thanks for any insight<br>
-frank<br><br>