Omnimaga > OmnomIRC Development
New — Débugging Unicode Issues
alberthrocks:
This is just a little reminder for myself to fix a major issue - whenever unicode characters (like the long dash in the title) are used, New crashes.
(This also serves as a test to crash the bot with.)
alberthrocks:
Testing
EDIT: Bug fixed. Apparently, you have to .decode("utf-8") for unicode titles like this before re-encoding and sending to IRC.
DJ Omnimaga:
Ah I see now why it kept disconnecting. What about special chars like accents?
alberthrocks:
It should work, since it's unicode! (This post, as a result, shouldn't crash New!)
DJ Omnimaga:
That's good to hear then :)
Navigation
[0] Message Index
[#] Next page
Go to full version