Recently I've had a few students complain about the following. They submit an answer and get a (to them) cryptic error message. I've sleuthed out that they are getting some answer somewhere and copy-pasting it into the answer blank instead of typing directly. And what they paste has this character in it:
https://www.fileformat.info/info/unicode/char/2212/index.htm
The UTF-8 literal for this is \xe2\x88\x92.
(https://www.utf8-chartable.de/unicode-utf8-table.pl?start=8704&number=128&names=-&utf8=string-literal)
The message they get is like this one, sometimes slightly different depending on the characters surrounding the special minus sign:
DBD::mysql::st execute failed: Incorrect string value: '\xE2\x88\x9E, 2...' for column 'answer_string' at row 1 at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 837.
Is there anything we can do about this scenario to make the user experience better? For one thing, it appears the database is just disallowing this to be saved as a submitted answer. Is it possible to change that (and perhaps change this for similar special characters)?
Second, are we at the point where we can add these characters to MathObjects to be understood as equivalent to their plain keyboard counterparts?