Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54985 > unrolled thread

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

Started byΝίκος <nikos.gr33k@gmail.com>
First post2013-09-29 10:49 +0300
Last post2013-10-01 01:06 +1000
Articles 6 on this page of 66 — 15 participants

Back to article view | Back to comp.lang.python


Contents

  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 10:49 +0300
    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 10:53 +0300
      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-29 18:00 +1000
        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 11:04 +0300
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-29 18:07 +1000
            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 11:19 +0300
              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-29 18:23 +1000
                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 11:30 +0300
                  Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 11:37 +0300
                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-29 09:45 +0000
                      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 13:24 +0300
                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Dave Angel <davea@davea.name> - 2013-09-29 11:11 +0000
                          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 14:25 +0300
                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Dave Angel <davea@davea.name> - 2013-09-29 11:46 +0000
                              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 14:51 +0300
                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-09-29 14:38 +0200
                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-30 00:01 +1000
                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-30 00:19 +1000
                              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 19:06 +0300
                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-29 12:14 -0400
                                  Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 19:19 +0300
                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Larry Hudson <orgnut@yahoo.com> - 2013-09-29 20:16 -0700
                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 15:45 +0100
                                      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-30 21:03 +0300
                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-30 20:18 +0200
                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 19:42 +0100
                                          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-30 23:13 +0300
                                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 21:44 +0100
                                              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 00:34 +0300
                                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-30 17:44 -0400
                                                  Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 01:08 +0300
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-30 18:13 -0400
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 23:14 +0100
                                                      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 01:19 +0300
                                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 23:28 +0100
                                                          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 01:30 +0300
                                                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-10-01 08:43 +1000
                                                              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 01:48 +0300
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-30 23:50 +0000
                                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 22:47 +0100
                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ned Batchelder <ned@nedbatchelder.com> - 2013-09-30 14:54 -0400
                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-30 22:51 +0200
                                        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-10-01 08:29 +1000
                                          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 01:36 +0300
                                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-10-01 08:56 +1000
                                              Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 02:14 +0300
                                                Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-01 09:27 +0200
                                                  Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-01 11:39 +0300
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-01 11:10 +0200
                                                  Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-02 01:36 +0000
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-02 09:23 +0200
                                                      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-02 11:52 +0300
                                                    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-10-02 11:49 +0300
                                            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Grant Edwards <invalid@invalid.invalid> - 2013-10-01 14:29 +0000
                                        Mutual respect, tolerance, encouragement (was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte) Ben Finney <ben+python@benfinney.id.au> - 2013-10-01 08:42 +1000
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ned Batchelder <ned@nedbatchelder.com> - 2013-09-29 06:53 -0400
            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-29 14:08 +0000
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Terry Reedy <tjreedy@udel.edu> - 2013-09-29 13:30 -0400
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ned Batchelder <ned@nedbatchelder.com> - 2013-09-29 15:08 -0400
    Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-09-29 17:53 +1000
      Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Νίκος <nikos.gr33k@gmail.com> - 2013-09-29 10:59 +0300
        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-29 12:25 -0400
        Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Grant Edwards <invalid@invalid.invalid> - 2013-09-30 13:51 +0000
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-09-30 15:51 +0100
            Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-30 22:09 +0000
          Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Chris Angelico <rosuav@gmail.com> - 2013-10-01 01:06 +1000

Page 4 of 4 — ← Prev page 1 2 3 [4]


#54988

FromΝίκος <nikos.gr33k@gmail.com>
Date2013-09-29 10:59 +0300
Message-ID<l28mll$c50$1@dont-email.me>
In reply to#54987
Στις 29/9/2013 10:53 πμ, ο/η Chris Angelico έγραψε:
> On Sun, Sep 29, 2013 at 5:49 PM, Νίκος <nikos.gr33k@gmail.com> wrote:
>> Hello although my code is correct just today i saw this in the error_log
>
> You retain this ridiculous arrogance that your code is somehow
> "correct", despite the problems you continually face. Do not these
> problems prove that your code is NOT correct?
>
> ChrisA
>

You fail to understand that these code i now use was written with the 
help of regulars here and yes its correct.


As i said in my previous post i already identified that the problem was 
at the error handling.


Since this is not a socket.gaierror it wants:

except Exception as e: ?

i just tried it and now it works.

but then again why the:    UnicodeDecodeError: 'utf-8' codec can't 
decode byte 0xb6 in position 0: invalid start byte

when it comes to determine the 'host' ?

[toc] | [prev] | [next] | [standalone]


#55027

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2013-09-29 12:25 -0400
Message-ID<mailman.456.1380471930.18130.python-list@python.org>
In reply to#54988
On Sun, 29 Sep 2013 10:59:50 +0300, ????? <nikos.gr33k@gmail.com> declaimed
the following:

>???? 29/9/2013 10:53 ??, ?/? Chris Angelico ??????:
>> On Sun, Sep 29, 2013 at 5:49 PM, ????? <nikos.gr33k@gmail.com> wrote:
>>> Hello although my code is correct just today i saw this in the error_log
>>
>> You retain this ridiculous arrogance that your code is somehow
>> "correct", despite the problems you continually face. Do not these
>> problems prove that your code is NOT correct?
>>
>> ChrisA
>>
>
>You fail to understand that these code i now use was written with the 
>help of regulars here and yes its correct.
>
	Each individual statement may be correct, yes... But since we've NOT
written or seen the entire application itself, there could be many problems
in the overall algorithm.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [next] | [standalone]


#55075

FromGrant Edwards <invalid@invalid.invalid>
Date2013-09-30 13:51 +0000
Message-ID<l2bvkg$5b8$1@reader1.panix.com>
In reply to#54988
On 2013-09-29, ?????????? <nikos.gr33k@gmail.com> wrote:
> ???????? 29/9/2013 10:53 ????, ??/?? Chris Angelico ????????????:
>
> You fail to understand that these code i now use was written with the 
> help of regulars here and yes its correct.

If you're code is correct, then use it and be happy.

There's no need to bother us if your code is correct.

-- 
Grant Edwards               grant.b.edwards        Yow! Can I have an IMPULSE
                                  at               ITEM instead?
                              gmail.com            

[toc] | [prev] | [next] | [standalone]


#55080

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-09-30 15:51 +0100
Message-ID<mailman.490.1380552723.18130.python-list@python.org>
In reply to#55075
On 30/09/2013 14:51, Grant Edwards wrote:
> On 2013-09-29, ?????????? <nikos.gr33k@gmail.com> wrote:
>> ???????? 29/9/2013 10:53 ????, ??/?? Chris Angelico ????????????:
>>
>> You fail to understand that these code i now use was written with the
>> help of regulars here and yes its correct.
>
> If you're code is correct, then use it and be happy.
>
> There's no need to bother us if your code is correct.
>

Could this be an extremely rare case whereby the original code is 100% 
correct but the problems have been exacerbated by the many suggested 
patches given here being 100% incorrect?

-- 
Cheers.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#55125

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-09-30 22:09 +0000
Message-ID<l2csqd$mvg$1@dont-email.me>
In reply to#55080
On Mon, 30 Sep 2013 15:51:39 +0100, Mark Lawrence wrote:

> On 30/09/2013 14:51, Grant Edwards wrote:
>> On 2013-09-29, ?????????? <nikos.gr33k@gmail.com> wrote:
>>> ???????? 29/9/2013 10:53 ????, ??/?? Chris Angelico ????????????:

>>> You fail to understand that these code i now use was written with the
>>> help of regulars here and yes its correct.

>> If you're code is correct, then use it and be happy.
>> There's no need to bother us if your code is correct.

> Could this be an extremely rare case whereby the original code is 100%
> correct but the problems have been exacerbated by the many suggested
> patches given here being 100% incorrect?

I'm sending you the bill for hospital admission. I laughed so hard I fell 
off of my chair and banged my head!

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#55083

FromChris Angelico <rosuav@gmail.com>
Date2013-10-01 01:06 +1000
Message-ID<mailman.492.1380553588.18130.python-list@python.org>
In reply to#55075
On Tue, Oct 1, 2013 at 12:51 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 30/09/2013 14:51, Grant Edwards wrote:
>>
>> On 2013-09-29, ?????????? <nikos.gr33k@gmail.com> wrote:
>>>
>>> ???????? 29/9/2013 10:53 ????, ??/?? Chris Angelico ????????????:
>>>
>>> You fail to understand that these code i now use was written with the
>>> help of regulars here and yes its correct.
>>
>>
>> If you're code is correct, then use it and be happy.
>>
>> There's no need to bother us if your code is correct.
>>
>
> Could this be an extremely rare case whereby the original code is 100%
> correct but the problems have been exacerbated by the many suggested patches
> given here being 100% incorrect?

Jests and barbs left aside, I believe his definition of "correct" is
"wasn't crashing". Earlier in this thread there was a hint that he'd
tightened a bare except to one specific exception. My guess is his
code wasn't correct, but one bug (overly-broad try/except) masked
another.

ChrisA

[toc] | [prev] | [standalone]


Page 4 of 4 — ← Prev page 1 2 3 [4]

Back to top | Article view | comp.lang.python


csiph-web