On Fri, Aug 10, 2007 at 12:48:07AM +0100, Sam Morris wrote:
> On Fri, 2007-08-03 at 18:43 +0200, Filippo Giunchedi wrote:
> > [2007-08-03 18:15:00] INFO :: [EMAIL PROTECTED] ::  ::
> > contactPersonalChanged :: msn.msnw.NotificationClient :: {'personal':
> > 'In qualche caso, la distinzione tra un ammasso globulare ed uno
> > galattico pu\xf2 non risultare del tutto immediata:', 'self':
> > 'instance', 'userHandle': '[EMAIL PROTECTED]'}
> 
> Do you know what character that should have been? In latin1 (and
> windows-1252), 0xf2 is ò (U+F2 LATIN SMALL LETTER O WITH GRAVE). Does
> that character make sense in that sentence?

err, yes I didn't noticed the message was in italian :)
The missing letter is U+F2, yes.

> 
> > this is probably because glue.py is not using the "errors" argument to
> > string.decode() (see http://docs.python.org/lib/string-methods.html) which 
> > was
> > introduced in 2.3.
> > 
> > I am not sure about the proper fix here, msnContact.personal.decode("utf-8",
> > "ignore") does the trick, although "replace" looks saner. (I'm currently 
> > using "replace")
> 
> Could you try msnContact.personal.decode ('windows-1252') and see if
> that triggers any other errors?

Okay, but don't hold your breath :)

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

UNIX is simple, but it just takes a genius to understand the simplicity.
-- Dennis Ritchie

Reply via email to