Jun-28-2018, 02:01 AM
i did the command
py3 seeintent.py fd12.py
which was printing lots of ASCII stuff for debugging then printed the file it read in and it ended with:Output:Traceback (most recent call last):
File "seeintent.py", line 54, in <module>
print(line)
UnicodeEncodeError: 'ascii' codec can't encode character '\xa9' in position 10: ordinal not in range(128)
lt1/pdh /home/pdh 73> lines 53 56 seeintent.py
for line in a:
print(line)
stdout.flush()
lt1/pdh /home/pdh 74> lines 15 18 fd12.py
__license__ = """
Copyright © 2016, by Phil D. Howard - all other rights reserved
lt1/pdh /home/pdh 75>
the character at issue is '©' (code point U+00A9) which should be handled OK if stdout was open()'d with encoding='utf-8'. but it wasn't. and i couldn't
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.