ASCII encoding error: ordinal not in range(128)

Erno Kuusela erno-news at erno.iki.fi
Wed Mar 21 10:05:11 EST 2001


In article <mailman.985126108.22009.python-list at python.org>, Paul
Prescod <paulp at ActiveState.com> writes:

| "abc".encode("Latin-1")

| That means that characters between 128 and 255 will be encoded as the
| equivalent byte-codes.

hmm, so it would seem. i wonder if this is a bug? shouldn't it blow
up for bytes in 128-255 that are not in latin-1?

  -- erno



More information about the Python-list mailing list