Aug-24-2019, 09:51 PM
(This post was last modified: Aug-24-2019, 09:51 PM by adnanahsan.)
ok see here http://prntscr.com/ox21gf
when i simply entered s = 'Bebês' and press enter key, see in the image what i got, this is the issue ..
i tried s = u'Bebês' too, same error.
python version is 3.6
And on python 2 its showing like this
when i simply entered s = 'Bebês' and press enter key, see in the image what i got, this is the issue ..
i tried s = u'Bebês' too, same error.
python version is 3.6
And on python 2 its showing like this
>>> s = u'Bebês' >>> print(s) Bebêsi tried this on 2 servers, same issue on both server .. working fine on my windows pc though, and also on my ubuntu installed on vmware on my windows pc.. but problem is only on servers
(Aug-24-2019, 01:30 PM)snippsat Wrote:(Aug-23-2019, 11:54 PM)adnanahsan Wrote: but on terminal some thing is wrong. strange issue i am facing bro :(This is a typical error that can come if run Python 2,are you sure you running python 3 on server?
for example
i see this " Bebês " in terminal instead of " Bebês "
# Python 3.7 >>> s = 'Bebês' >>> print(s) Bebês # Python 2.7,the error you get >>> s = 'Bebês' >>> print(s) Bebês # Python 2.7 fix >>> s = u'Bebês' >>> print(s) BebêsPut insys.executable
in script so see what python version you run.
import sys print(sys.executable) s = u'Bebês' print(s)