From: benoit.pin Date: Tue, 15 Feb 2011 09:59:14 +0000 (+0000) Subject: Bugfix tri alphabétique des chansons. X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/commitdiff_plain/aecf97adec72d5af1df94782505df787efe5670a?ds=sidebyside Bugfix tri alphabétique des chansons. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@339 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/minwii/widgets/songfilebrowser.py b/src/minwii/widgets/songfilebrowser.py index 8dd4821..08008e3 100755 --- a/src/minwii/widgets/songfilebrowser.py +++ b/src/minwii/widgets/songfilebrowser.py @@ -300,8 +300,8 @@ def _recurseDecomposition(uc): fullDeco = u''.join(filter(lambda c : isPrintable(c), fullDeco)) return fullDeco -def desacc(s) : - us = s.decode('utf-8', 'ignore') +def desacc(s, encoding='iso-8859-1') : + us = s.decode(encoding, 'ignore') ret = [] for uc in us : ret.append(_recurseDecomposition(uc))