diff -Nur wiithon/core.py wiithon_new/core.py --- wiithon/core.py 2009-12-06 19:40:39.000000000 +0100 +++ wiithon_new/core.py 2009-12-09 21:23:03.000000000 +0100 @@ -12,7 +12,6 @@ import gtk import gettext import shutil -from hachoir_core.i18n import guessBytesCharset import util import config @@ -34,9 +33,6 @@ salida = [] for linea in lineas: cachos = linea.strip().split(config.SEPARADOR) - charSet = guessBytesCharset(cachos[1]) - if charSet is not None: - cachos[1] = util.decode(cachos[1],charSet) idgame = util.decode(cachos[0]) sql = util.decode("idgame=='%s' and idParticion='%s'" % (idgame, particion.idParticion)) diff -Nur wiithon/debian/control wiithon_new/debian/control --- wiithon/debian/control 2009-12-05 13:49:36.000000000 +0100 +++ wiithon_new/debian/control 2009-12-09 21:23:22.000000000 +0100 @@ -8,7 +8,7 @@ Package: wiithon Architecture: any -Depends: libc6 (>= 2.4), libc6-dev (>= 2.4), python (>= 2.5), gcc-multilib (>= 4.4) [amd64], python-sqlalchemy (>= 0.4), imagemagick, gnome-icon-theme, libgtk2.0-0 (>= 2.16), python-gtk2 (>= 2.16), python-glade2 (>= 2.16), python-libxml2, unzip, python-hachoir-core +Depends: libc6 (>= 2.4), libc6-dev (>= 2.4), python (>= 2.5), gcc-multilib (>= 4.4) [amd64], python-sqlalchemy (>= 0.4), imagemagick, gnome-icon-theme, libgtk2.0-0 (>= 2.16), python-gtk2 (>= 2.16), python-glade2 (>= 2.16), python-libxml2, unzip Description: WBFS partition manager Wiithon is a software developed in Python, C, C++ and bash. It is used for easy management of Wii games on WBFS partitions. diff -Nur wiithon/util.py wiithon_new/util.py --- wiithon/util.py 2009-12-06 19:40:39.000000000 +0100 +++ wiithon_new/util.py 2009-12-09 21:20:25.000000000 +0100 @@ -369,7 +369,23 @@ try: return s.decode(code) except UnicodeDecodeError: - return s + try: + text = unicode(s, 'ASCII', 'strict') + return s.decode('ASCII') + except UnicodeDecodeError: + pass + + try: + text = unicode(s, 'ISO-8859-1', 'strict') + return s.decode('ISO-8859-1') + except UnicodeDecodeError: + pass + + try: + text = unicode(s, 'ISO-8859-15', 'strict') + return s.decode('ISO-8859-15') + except UnicodeDecodeError: + pass class NoDeberiaPasar(Exception): pass