On 2017-01-13 05:44 PM, Grant Edwards wrote:
On 2017-01-13, D'Arcy Cain wrote:
Here is the failing code:
with open(sys.argv[1], encoding="latin-1") as fp:
for ln in fp:
print(ln)
Traceback (most recent call last):
File "./load_iff", line 11, in
print(ln)
UnicodeEncodeError:
On 2017-01-13, D'Arcy Cain wrote:
> I thought I was done with this crap once I moved to 3.x but some
> Winblows machines are still sending what some circles call "Extended
> ASCII". I have a file that I am trying to read and it is barfing on
> some characters. For example:
>
>due to the Q
On 2017-01-13, D'Arcy Cain wrote:
> Here is the failing code:
>
> with open(sys.argv[1], encoding="latin-1") as fp:
>for ln in fp:
> print(ln)
>
> Traceback (most recent call last):
>File "./load_iff", line 11, in
> print(ln)
> UnicodeEncodeError: 'ascii' codec can't encode cha
On Fri, Jan 13, 2017, at 17:24, D'Arcy Cain wrote:
> I thought I was done with this crap once I moved to 3.x but some
> Winblows machines are still sending what some circles call "Extended
> ASCII". I have a file that I am trying to read and it is barfing on
> some characters. For example:
>