From aecf97adec72d5af1df94782505df787efe5670a Mon Sep 17 00:00:00 2001 From: "benoit.pin" Date: Tue, 15 Feb 2011 09:59:14 +0000 Subject: [PATCH 1/1] =?utf8?q?Bugfix=20tri=20alphab=C3=A9tique=20des=20cha?= =?utf8?q?nsons.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@339 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/minwii/widgets/songfilebrowser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.20.1