> On 26 Aug 2020, at 16:10, Chris Green <c...@isbd.net> wrote:
>
> UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in
> position 4: ordinal not in range(128)
>
> So what do I need to do to the message I'm adding with mbx.add(msg) to
> fix this? (I assume that's what I need to do).
>>> import unicodedata
>>> unicodedata.name('\ufeff')
'ZERO WIDTH NO-BREAK SPACE'
I guess the editor you use to compose the text is adding that to your message.
Barry
--
https://mail.python.org/mailman/listinfo/python-list