We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83416bd commit 4f07682Copy full SHA for 4f07682
web/js/main.js
@@ -336,7 +336,7 @@ function saveQuestions() {
336
objToSave.push(oneQ);
337
});
338
var jsonQues = JSON.stringify(objToSave);
339
- jsonQues = btoa(jsonQues);
+ jsonQues = btoa(encodeURIComponent(jsonQues));
340
wsSend("fileOp","write###fragen.txt###"+jsonQues);
341
}
342
web/js/websocket.js
@@ -115,7 +115,7 @@ var connectWs = function() {
115
} else if(key == "file") {
116
if(value == "fragen.txt") {
117
try {
118
- var base64 = atob(messageParts_a[2]);
+ var base64 = decodeURIComponent(atob(messageParts_a[2]));
119
fragen = JSON.parse(base64);
120
fillFragenEditor();
121
fillFragenSelect();
0 commit comments