-
Notifications
You must be signed in to change notification settings - Fork 24
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 in mainframe.py for non-ascii characters #29
Comments
Could you give me the gave of the failing room so I can replicate? |
Nërd Lounge™ |
Weird, I created a room with that exact name, and I'm able to join it correctly. There is an issue with the status bar (I don't see the warning you see, but the room name is not properly shown when displaying the Joining room message). I'm fixing that issue |
Try with the recent update (you have to pull from the GIT repo, since I haven't yet released packages for this) |
Will do tonight. thanks |
hmm, that didn't appear to fix it... |
(I'm on OSX snowleopard FWIW) |
It looks like something to do with how .format is called and what the interpolation expects. I don't really know python, but from reading it about it, it appears the django module smart_str https://code.djangoproject.com/browser/django/tags/releases/1.1.1/django/utils/encoding.py#L95 would help or maybe adding !r to the interpolated string, or see http://docs.python.org/tutorial/introduction.html e.g. u'Hello\u0020World !' |
A related fix in #67 may have solved this. Could you test with latest git version? Thanks |
e.g. from the log
self.statusBar().showMessage(self._("Joining room {room}...").format(room=room["name"]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 1: ordinal not in range(128)
this results in not being able to perform most actions in the room. It does display the room name properly in the select box, so I'm not sure what's different about these methods. In any case, the room is not currently useable. I tried adding .encode("ascii", "ignore") in various places as a hack but didn't find them all.
The text was updated successfully, but these errors were encountered: