add support for special characters in questions
This commit is contained in:
parent
83416bd0a7
commit
4f0768282f
@ -336,7 +336,7 @@ function saveQuestions() {
|
||||
objToSave.push(oneQ);
|
||||
});
|
||||
var jsonQues = JSON.stringify(objToSave);
|
||||
jsonQues = btoa(jsonQues);
|
||||
jsonQues = btoa(encodeURIComponent(jsonQues));
|
||||
wsSend("fileOp","write###fragen.txt###"+jsonQues);
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ var connectWs = function() {
|
||||
} else if(key == "file") {
|
||||
if(value == "fragen.txt") {
|
||||
try {
|
||||
var base64 = atob(messageParts_a[2]);
|
||||
var base64 = decodeURIComponent(atob(messageParts_a[2]));
|
||||
fragen = JSON.parse(base64);
|
||||
fillFragenEditor();
|
||||
fillFragenSelect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user