mirage icon indicating copy to clipboard operation
mirage copied to clipboard

UnicodeEncodeError: 'ascii' codec can't encode character '\xfc'

Open KaiMartin opened this issue 3 years ago • 0 comments

Description

Since a few days, mirage complains about UnicodeEncoding when I type a message -- not always, but when it does, I get an error message for every key I press. However, if I click "ignore" all characters I had typed are correctly shown. Sending and reading messages seems to be perfectly fine.

Error message

UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 243: ordinal not in range(128) Traceback (most recent call last): File "qrc:/src/backend/user_files.py", line 182, in _start_writer await new.write(self.serialized()) File "/usr/lib/python3/dist-packages/aiofiles/threadpool/utils.py", line 36, in method return (yield from self._loop.run_in_executor(self._executor, cb)) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 243: ordinal not in range(128)

Your environment

  • Debian bookworm/testing
  • x86 64bit)
  • desktop environment: XFCE
  • installed from the debian repo
  • my locale is : $ locale LANG=en_GB.UTF-8 LANGUAGE=en_GB:en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER=de_DE.UTF-8 LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=

Steps to reproduce

Type a message

Expected behavior

No complaints

Actual behavior

An error message for every key press.

KaiMartin avatar Oct 29 '21 17:10 KaiMartin