Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KaiMartin opened this issue Oct 29, 2021 · 0 comments
Open

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

KaiMartin opened this issue Oct 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@KaiMartin
Copy link

KaiMartin commented Oct 29, 2021

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 KaiMartin added the bug Something isn't working label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant