I have a function that returns a utf-16 encoded string and I have to include its result into another string by a replace:
string = myfunc()
debug_string = debug_string.replace("$rep$", string)
In my eclipse environment it works fine, but in another environment it gives an error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 23: ordinal not in range(128)
Do you know what is the possible cause?
Thanks