Mysql2::Error: Incorrect string value: '\xEF\xBC\x8Cpen...' for column 'student_name' at row 1: INSERT INTO `instructor_quiz_scores` (`student_name`, `quiz_name`, `score`, `date_completed`, `student_id`, `instructor_id`, `quiz_id`, `created_at`, `updated_at`) VALUES ('wei,peng #27111', 'Weather service Quiz', -1.0, '2016-05-31 14:06:58', 26781, 18713, 439635, '2016-05-31 14:06:58', '2016-05-31 14:06:58')
Mysql2::Error: Incorrect string value: '\xEF\xBC\x8C Mi...' for column 'student_name' at row 1: INSERT INTO `instructor_quiz_scores` (`student_name`, `quiz_name`, `score`, `date_completed`, `student_id`, `instructor_id`, `quiz_id`, `created_at`, `updated_at`) VALUES ('Yang, Mingsai#27113', 'Weather service Quiz', -1.0, '2016-05-31 14:11:58', 26784, 18713, 439654, '2016-05-31 14:11:58', '2016-05-31 14:11:58')
2.2.3 :013 > User.find_by(email:'463874549@qq.com').name
=> "Yang, Mingsai#27113"
2.2.3 :014 > User.find_by(email:'463874549@qq.com').name.length
=> 19
2.2.3 :015 > User.find_by(email:'463874549@qq.com').name.bytes.length
=> 21
2.2.3 :016 > User.find_by(email:'463874549@qq.com').name.ascii_only?
=> false
root cause
weird unicode chars in user name, instructor_quiz_scores user name column can't deal with them
http://stackoverflow.com/questions/22464011/mysql2error-incorrect-string-value
http://stackoverflow.com/questions/22464011/mysql2error-incorrect-string-value
to fix
Steve,
Can you investigate this? We have two reports of this issue this morning. Both are students from the same instructor ( Marcus Callahan: marcus.callahan@afa.edu ).
The other student account is: 463874549@qq.com
I found it interesting that when I log in as them, their student tools says there are no instructor quizzes so I can't tell what is occurring. Based on the time stamp of the emails, whatever it is that is happening, is occurring this morning.
Mike Marquez | Technical Support
Aviation Supplies & Academics, Inc.
7005 132nd Place SE | Newcastle, Wa. 98059
800-272-2359 | 425-235-1500 | Visit us on the web: www.asa2fly.com
-----Original Message-----
From: Brian Snider [mailto:brian@asa2fly.com]
Sent: Tuesday, May 31, 2016 8:26 AM
To: michael@asa2fly.com
Subject: FW: Some errors about my account
Brian W. Snider, Marketing Coordinator
Aviation Supplies & Academics, Inc.
7005 132nd Place SE
Newcastle, WA 98059-3153
Phone 800-426-8338 or 425-235-1500
Fax 425-235-0128
Website www.asa2fly.com
Email brian@asa2fly.com
-----Original Message-----
From: PengWei@dcamail.net [mailto:PengWei@dcamail.net]
Sent: Tuesday, May 31, 2016 8:10 AM
To: webmaster@asa2fly.com
Subject: Some errors about my account
Hello,I am a student pilot in Aerosim ,and I am in ground lesson now .I followed an instructor already,but I can't do his quiz.everytime when I take the quiz,it shows "we are sorry, but something went wrong".so,can you help me to correct it ? Thank you very much.