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

#3199 Fix console unicode error #223

Merged
merged 2 commits into from
Oct 22, 2018

Conversation

cas--
Copy link
Member

@cas-- cas-- commented Oct 22, 2018

No description provided.

The following error was encountered by user:

   ...deluge/ui/console/modes/basemode.py, line 290, in add_string
       screen.addstr(row, col, string, color)
   UnicodeEncodeError: 'ascii' codec can't encode character...

The `add_str` method is defaulting to using the Python 2 ascii
encoding with a unicode string so use the encoding passed to the
function.
- Replace usage of `s` for variable names to make it easier to read the code.
- Remove unneeded and unused encoding parameter from parse_color_string
  It should not be encoded by this function, only on output.
@cas-- cas-- changed the title Fix/console unicode err #3199 Fix console unicode error Oct 22, 2018
@cas-- cas-- merged commit 9ab2a50 into deluge-torrent:develop Oct 22, 2018
@cas-- cas-- deleted the Fix/console-unicode-err branch October 22, 2018 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant