W1
W1
2x
--> -->
UnicodeEncodeError | Python 3.6.9: /home/ajh/binln/python3 Sun Dec 3 18:37:06 2023 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/ajh/public_html/cgi-bin/index.py in <module>() |
634 rawHTMLf=open(requestedFile,'r',encoding='utf-8')
|
635 for line in rawHTMLf.readlines():
|
=> 636 print(line,end='')
|
637 sys.stderr.write(f"{tsstring}: [{remoteAdr}] request satisfied\n\n")
|
638 sys.exit(0)
|
builtin print = <built-in function print>, line = '<text text-anchor="start" x="468" y="-749.8" fon...arial" font-size="14.00" fill="#000000">\xa0</text>\n', end undefined |
UnicodeEncodeError: 'ascii' codec can't encode character '\xa0' in position 98: ordinal not in range(128)
args =
('ascii', '<text text-anchor="start" x="468" y="-749.8" fon...arial" font-size="14.00" fill="#000000">\xa0</text>\n', 98, 99, 'ordinal not in range(128)')
encoding =
'ascii'
end =
99
object =
'<text text-anchor="start" x="468" y="-749.8" fon...arial" font-size="14.00" fill="#000000">\xa0</text>\n'
reason =
'ordinal not in range(128)'
start =
98
with_traceback =
<built-in method with_traceback of UnicodeEncodeError object>