Re: [Tutor] python3 - °F/°C printing those degree signs

2018-08-08 Thread Steven D'Aprano
On Tue, Aug 07, 2018 at 08:43:53PM -0700, Evuraan wrote: > > > > You could try setting > > > > PYTHONIOENCODING="UTF-8" > > > > in your OS shell and see if that helps, but I suspect > > there's a better way to deal with it... > > > > Thank you! That was it! What system are you using that doesn't

Re: [Tutor] python3 - °F/°C printing those degree signs

2018-08-07 Thread Evuraan
> > You could try setting > > PYTHONIOENCODING="UTF-8" > > in your OS shell and see if that helps, but I suspect > there's a better way to deal with it... > Thank you! That was it! Exporting thusly made it behave: $ export PYTHONIOENCODING="UTF-8" $ python3 Python 3.5.2 (default, Nov 23 2017,

Re: [Tutor] python3 - °F/°C printing those degree signs

2018-08-07 Thread Steven D'Aprano
On Tue, Aug 07, 2018 at 02:32:58PM -0700, Evuraan wrote: > Greetings! How to print °F/°C etc in python3? In Python 3, you should be able to do: print('°F/°C') directly. If you can't, your configuration is broken. If you are including this is a .py file, make sure your text editor is set

Re: [Tutor] python3 - °F/°C printing those degree signs

2018-08-07 Thread Alan Gauld via Tutor
On 07/08/18 22:32, Evuraan wrote: print('\u00b0'+ " F") > ° F > > Elsewhere, it no longer seem to work: > > $ python3 > Python 3.5.2 (default, Nov 23 2017, 16:37:01) > [GCC 5.4.0 20160609] on linux > Type "help", "copyright", "credits" or "license" for more information. import

[Tutor] python3 - °F/°C printing those degree signs

2018-08-07 Thread Evuraan
Greetings! How to print °F/°C etc in python3? (This works on a WSL): ~$ python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> platform.release() '4.4.0-17134-Microsoft'