Special characters in questions
December 10, 2008 12:00 AM
Well, you can try to have them render as an image, or make the question text an image instead of text.
eductor said:Hi,
I have a problem when using special characters in questions. When Published as SCORM 1.2 and uploaded to the LMS, I get an error when hitting "done" at the end of the test.
It says LMSSetValue Error : cmi.interactions.8.text to [question text] incorrect Data Type.
I use Saba Publisher/Lectora and the characters I try to use is æ ø and å. These are common in the Danish language and therefore hard to exclude from all questions.
I have tried to extract the SCORM zip file and replace the characters with escape characters (æ ø and å) in the HTML-files. It did not help.
Then I found out that the problem is the _tobj535.xml file that holds the questions. If I delete the character in that file, the problem disappears. - but then of course they disappear in the result-popup too. It does not make any difference if I use escape characters in the xml - the error appears anyway
Does anyone know how to make it possible to use those special characters in questions when publishing to SCORM?
Discussion (3)
@IDAVID 49132 wrote:
Yes, I'm quite aware that I am replying to this thread 4 years later but I'm hoping someone has an answer to this issue to share. I have spent hours trying to figure out what the exact issue is and how to fix it.
I have published two exact versions of a course, one in English and one in French. I get no errors with the English version when testing but get the following error upon submitting the answers to the French test:
LMS Set value Error: cmi.interactions.0.text to [La technologie.....] Incorrect Data Type.
I get this error for 16 out of the 20 questions and also found some whacky characters in the _tobj6403.xml file such as u2019 instead of all the apostrophes but not necessarily in the questions which gave me error messages. I also noticed that the xml files are in ISO encoding so I changed them to UTF-8 - no change. When I manually correct the odd characters and insert the new xml files in my scorm package (UTF-8), I no longer get the error message, but the pop-up summary of the quiz answers no longer appears either.
Really tearing my hair out and would appreciate any guidance as to how to fix this.
I don't have a solution, but have had problems using certain characters in the answer text responses. In the AWT file there are 2 places where the question and answer text is stored.
1. In the element. This is the data that is actually shown to the user during the quiz. This is in the produced HTML.
2. In the element. This is Lectora's attempt at converting the rtf to text. This element is written to the XML
Those "wacky" u2019 characters are simply the original Unicode apostrophe characters from the RTF text that is not converted. I suspect they are not related to your problem, we have lots of usage of those apostrophes as well as Thai and Chinese pages with many u sequences from the original RTF.
We have found a bug, where usage of the RTF non breaking space (~) in answers will put corrupt XML 1.0 characters to the AWT file and put odd characters in the _toobj XML file although I haven't noticed a usage problem. In our case, the corrupt character is inserted as the HTML numeric reference - ; which is technically not legal XML 1.0.
Yes, I'm quite aware that I am replying to this thread 4 years later but I'm hoping someone has an answer to this issue to share. I have spent hours trying to figure out what the exact issue is and how to fix it.
I have published two exact versions of a course, one in English and one in French. I get no errors with the English version when testing but get the following error upon submitting the answers to the French test:
LMS Set value Error: cmi.interactions.0.text to [La technologie.....] Incorrect Data Type.
I get this error for 16 out of the 20 questions and also found some whacky characters in the _tobj6403.xml file such as u2019 instead of all the apostrophes but not necessarily in the questions which gave me error messages. I also noticed that the xml files are in ISO encoding so I changed them to UTF-8 - no change. When I manually correct the odd characters and insert the new xml files in my scorm package (UTF-8), I no longer get the error message, but the pop-up summary of the quiz answers no longer appears either.
Really tearing my hair out and would appreciate any guidance as to how to fix this.
What I usually do is a combination of things to overcome these issues.
1. I put the text with the offending character(s) in a text box to display as the question or answer to the learner instead of in the question/answer. (as mentioned before)
2. I set up a customized page using variables to display to the learner the feedback based on what they missed in the test.
Mine says Please review:
-xxx
-xxx
-xxx
etc
You can customize a page to look like a feedback window - mine reflect the design of the title. My customers wanted the built in feedback initially but when I showed them the difference - along with the fact that I can customize the feedback, they now want nothing else. :)
Discussions have been disabled for this post