Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11078

Modified Files:
        __init__.py 
Log Message:
fix unicode problem for utf-8

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/__init__.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** __init__.py 23 Feb 2004 19:39:59 -0000      1.12
--- __init__.py 25 Feb 2004 19:50:51 -0000      1.13
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.13  2004/02/25 19:50:51  dischi
+ # fix unicode problem for utf-8
+ #
  # Revision 1.12  2004/02/23 19:39:59  dischi
  # fix vfs problem in mediainfo
***************
*** 68,73 ****
                  return unicode(string, encoding)
              except Exception, e:
!                 _debug_( "Could not convert %s to unicode using \"%s\" encoding: %s" 
% \
!                          ( repr(string), encoding, e ))
          return string
  
--- 71,80 ----
                  return unicode(string, encoding)
              except Exception, e:
!                 try:
!                     return unicode(string, config.LOCALE)
!                 except Exception, e:
!                     print 'Error: Could not convert %s to unicode' % repr(string)
!                     print 'tried encoding %s and %s' % (encoding, config.LOCALE)
!                     print e
          return string
  



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to