On 06/12/2015 09:06, Dave Farrance wrote:
"D'Arcy J.M. Cain" <da...@vybenetworks.com> wrote:
...
utf-8
Traceback (most recent call last):
File "./g", line 5, in <module>
print(u"\N{TRADE MARK SIGN}")
UnicodeEncodeError: 'ascii' codec can't encode character '\u2122' in
position 0: ordinal not in range(128)
I *presume* that you're using Linux since you've got a hashbang, so...
Not really a good presumption as the hashbang has been used in Python
scripts on Windows ever since "PEP 397 -- Python launcher for Windows",
see https://www.python.org/dev/peps/pep-0397/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list