[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: UnicodeDecodeError getting revision log with Python

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 28 May 2009 23:16:51 +0100

On Thu, 2009-05-28 at 10:47 -0700, Jack Bates wrote:
> > 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.org/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?

Sorry, I don't know any more than I found on that web site.

- Julian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2356598
Received on 2009-05-29 00:17:34 CEST

This is an archived mail posted to the Subversion Dev mailing list.