[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: Jack Bates <ms419_at_freezone.co.uk>
Date: Thu, 28 May 2009 10:47:48 -0700

> 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?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2356588
Received on 2009-05-28 23:34:35 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.