RunestoneComponents
RunestoneComponents copied to clipboard
usernames with emojis in them cause trouble in Student Progress report
Error reported in course SB_Intro_CS_Python on page /runestone/dashboard/studentreport?id=G%C3%83%C2%A4g%C3%84%C2%99%C3%B0%C2%9F%C2%99%C2%8C by user MrsJakubielski Please describe what you were doing that led up to this error: I am trying to access a specific student's info: Gage Goodwin and every time I click on his name I get directed to report a bug. I seem to be able to access all the other students info except his.
---------------- Traceback --------------
Traceback (most recent call last):
File "/home/bmiller/Runestone/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/bmiller/Runestone/web2py/applications/runestone/controllers/dashboard.py", line 286, in
Yes, young gage seems to have created a very creative username: Gägę🙌
This is not supported, but I suppose we should try to detect that at registration time.
Write a javascript validation function to ensure that a username has only ascii characters in it before submitting a registration request.
I have started working on solving this issue and it is not clear which characters should be prevented to avoid the trouble. I have tried different usernames, where the ones with emojis always cause troubles, but some usernames that had non-ASCII characters worked and some did not. Any clarification on which characters should be allowed would be appreciated @bnmnetp @bjones1 .