osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax error


Hello,

I have the following program that employs the dcm2jpg.exe software:

import os
os.system(?dcm2jpg.exe IM-0004-0004.dcm?)
exit

When I tried to run it, I got the following error:

SyntaxError: Non-ASCII character '\xe2' in file dicomjpg.py on line 2, but
no en
coding declared; see http://python.org/dev/peps/pep-0263/ for details

Why is that? How can this error be solved?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150110/25d2fa2c/attachment.html>