On 1/13/21 7:31 PM, n952162 wrote:
Hello. In python3, how do you do this?tgt = 'gebuchte Umsätze;' In python2, you could do this: tgt = unicode ('gebuchte Umsätze;'.decode ('latin1')) but that gives: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe4 in position 12: invalid continuation byte In fact, any constant with ä in it will give you that.
Okay, I see that if your locale is not C, you can do: tgt = 'gebuchte Umsätze;'