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
>
> 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,
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
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
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'