<div dir="ltr">On Tue, Aug 12, 2008 at 11:31 AM, Robin Gilks <span dir="ltr"><<a href="mailto:g8ecj@gilks.org">g8ecj@gilks.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
> On Tue, Aug 12, 2008 at 9:15 AM, Robin Gilks <<a href="mailto:g8ecj@gilks.org">g8ecj@gilks.org</a>> wrote:<br>
><br>
>> Me and epgsnoop - we do have problems!!<br>
>><br>
>> The latest one may be related to updating to python-2.5. epgsnoop (after<br>
>> a<br>
>> re-install just in case!!) errors as follows:<br>
>><br>
>> Traceback (most recent call last):<br>
>> File "/usr/local/bin/epgsnoop", line 167, in <module><br>
>> print output(channels, programs)<br>
>> UnicodeEncodeError: 'ascii' codec can't encode characters in position<br>
>> 302228-302268: ordinal not in range(128)<br>
>><br>
><br>
> I was having the same issue. I fixed it by changing the 4th to last line<br>
> in<br>
> outputter.py to:<br>
><br>
> return '\n'.join(output).decode('iso-8859-1',replace)<br>
><br>
> and removing the<br>
><br>
> ... .decode('latin-1)<br>
><br>
> statements from the name and description sections in snooper.py.<br>
<br>
</div></div>Not sure how I got my current version of epgsnoop (latest date in all the<br>
files is 4th March) but it already has these changes in it :-(<br>
<br>
Since the only thing I'm aware of that has changed is the version of<br>
python (now at version 2.5.2), I assume its something there...<br>
<div></div></blockquote><div><br>Hmm. 2.5.2 is what I'm using with the version of epgsnoop I grabbed from BZR last Wednesday. I tried the 0.88 release and it didn't have any character encoding issues but it doesn't do the "All New" name substitution properly so I upgraded to the BZR version. Modifying that version to revert the character encoding stuff fixed my issue. I suspect our problems are not the same after all.<br>
<br>Cheers,<br>Steve<br></div></div><br></div>