HTML5 variables changing non-alphanumeric characters (encoding?)
Feb 05, 2014
I have a project that uses simple web object HTML input fields to populate Storyline variables. (I am using custom web object HTML inputs so that I can put in a character limit) I use .SetVar to set the variables and they load and save correctly in the Flash version, in SCORM.
But in HTML5 my variable values are changing when I re-open a project with existing variable values. I am getting what seems like encoded character strings replacing many of the non-alphanumeric characters that have been typed.
So if the user typed "Here is my input, with a comma in the middle", when they close the SCORM project and re-open, it has changed their value to "Here is my input^07 with a comma in the middle". It does a similar replace to line breaks and single quotes - depending on the browser, strings like ^07, ^002 and so on.
Why I am seeing this issue? Is there some encoding I SHOULD be doing when I use the SetVar function?
Thanks!
1 Reply
I've been doing some testing. It's not just a web object HTML input. Even when I use a multiline storyline data entry, I get the same problem if I insert line breaks, special characters, etc. and close the SCORM course and re-open.
This discussion is closed. You can start a new discussion or contact Articulate Support.