Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: UnicodeDecodeError getting revision log with Python

subversion
Discussion topic

Back to topic list

Re: UnicodeDecodeError getting revision log with Python

Author jablko
Full name Jack Bates
Date 2009-05-28 14:34:19 PDT
Message > Jack Bates wrote:
> > A script we use for XMPP commit notification occasionally complains,
> >
> > [...]
> > exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
> > position 21: ordinal not in range(128)
>
> Google(python UnicodeDecodeError ordinal) returns
> <http://www.xinotes.o​rg/notes/note/391/​>. Does that help?

Thanks Julian, if I understand correctly, svn.fs.revision_prop() returns
a bytestring and I need to know the encoding of the bytestring to decode
it to a unicode object?

Is there something in the Subversion Python bindings to return a decoded
unicode object instead of a bytestring?

« Previous message in topic | 3 of 8 | Next message in topic »

Messages

Show all messages in topic

UnicodeDecodeError getting revision log with Python jablko Jack Bates 2009-05-26 16:28:48 PDT
     Re: UnicodeDecodeError getting revision log with Python julianfoad Julian Foad 2009-05-27 03:44:14 PDT
     Re: UnicodeDecodeError getting revision log with Python jablko Jack Bates 2009-05-28 14:34:19 PDT
         Re: UnicodeDecodeError getting revision log with Python julianfoad Julian Foad 2009-05-28 15:17:00 PDT
         Re: UnicodeDecodeError getting revision log with Python David James <james82 at gmail dot com> David James <james82 at gmail dot com> 2009-05-28 15:58:49 PDT
             Re: UnicodeDecodeError getting revision log with Python Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-05-28 22:11:18 PDT
     Re: UnicodeDecodeError getting revision log with Python jablko Jack Bates 2009-06-01 09:44:44 PDT
         Re: UnicodeDecodeError getting revision log with Python cmpilato C. Michael Pilato 2009-06-01 10:01:10 PDT
Messages per page: