Below is an adapted translation of a response made in Stackoverflow (the original) for a problem similar to yours. You can see the original question here with your answers.
Translation:
Probably you are trying to print a text that contains foreign Unicode characters - in relation to basic ASCII 128 - which may be our own language. Try encode the Unicode string as ASCII 256 first:
unicodeData.encode('ascii', 'ignore')
The 'ignore' will tell you to skip these characters. From the Python documentation:
>>> u = unichr(40960) + u'abcd' + unichr(1972)
>>> u.encode('utf-8')
'\xea\x80\x80abcd\xde\xb4'
>>> u.encode('ascii')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character '\ua000' in position 0: ordinal not in range(128)
>>> u.encode('ascii', 'ignore')
'abcd'
>>> u.encode('ascii', 'replace')
'?abcd?'
>>> u.encode('ascii', 'xmlcharrefreplace')
'ꀀabcd޴'
It might be useful to read the article "The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)"*, I think it’s a good tutorial for what’s going on. After reading, you will stop feeling that you are only finding what the commands do (at least, that’s what happened to me).
NOTE:
There is a translation of the mentioned article as indicated by @jsbueno. Such article is authored by Joel Spolsky and the translation is by Paulo André de Andrade. See here.
You can post the code that is causing the problem?
– user25930
Are you using python 2 or python 3? is there any chance you changed the version from 3 to 2 when you changed the machine? ever tried to put # -- coding: utf-8 -- at the top of the file ? , you could put part of the code here in the question (mainly where uses the Unicode character) ?
– drgarcia1986