Not to be a bearer of bad news, but this error comes up when reviewing saved binds (Mod 3 is the last one displayed):
Mod 3 SaitekX52Pro Fri Nov 24 13:39:32 2017
Traceback (most recent call last):
File "/var/www/edrefcard.info/www/scripts/bindings.py", line 1120, in <module>
main()
File "/var/www/edrefcard.info/www/scripts/bindings.py", line 1117, in main
printHTML(mode, config, public, createdImages, deviceForBlockImage, errors)
File "/var/www/edrefcard.info/www/scripts/bindings.py", line 757, in printHTML
printBody(mode, config, public, createdImages, deviceForBlockImage, errors)
File "/var/www/edrefcard.info/www/scripts/bindings.py", line 743, in printBody
printList()
File "/var/www/edrefcard.info/www/scripts/bindings.py", line 705, in printList
''' % (refcardURL, cgi.escape(name, quote=True), controllersStr, dateStr))
UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 120: ordinal not in range(128)
This should now be solved. I won't bore you with the long story of how much time I spent writing unit tests when the error was in the server config.
Anyhow, descriptions are no longer restricted to ASCII and everything should be UTF-8. The sole current non-ASCII description is now proudly bearing the � char as a memento.
Also, be advised that I'm writing some admin tools to get rid of entries with silly names, such as those beginning with a ton of hyphens.
"If you wanted to keep it, you should have given it a better name."
Last edited: