UnicodeDecodeError issue

Ferrous Cranus nikos at superhost.gr
Mon Sep 2 00:16:34 EDT 2013


Στις 2/9/2013 2:14 πμ, ο/η Dave Angel έγραψε:
> On 1/9/2013 18:23, Ferrous Cranus wrote:
>
>      <snip>
>>>
>> i still wonder how come the invalid byte messge dissapeared
>>
>
> Too bad you never bothered to narrow it down to its source.


if only i knew how up until yesterday when they were appearing.


> It could
> be anywhere on those three lines.  If I had to guess, I'd figure it was
> one of those environment variables.  The Linux environment variables are
> strings of bytes, and the os.environ is a dict of strings.  Apparently
> it converts them using utf-8, and if you've somehow set them using some
> other encoding, you could be getting that error.
>
> Have you tried to decode those bytes in various encodings other than
> utf-8 ?


No, because i wasn't aware of what string/variable they were pertaining at.


-- 
Webhost <http://superhost.gr>



More information about the Python-list mailing list