Browse Source

Fixed UTF-8 encoding in AJAX loader. Fixes #252 #254

Benjamin Giesinger 7 years ago
parent
commit
58b57d1235
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/OpenSheetMusicDisplay/AJAX.ts

+ 1 - 1
src/OpenSheetMusicDisplay/AJAX.ts

@@ -32,7 +32,7 @@ export class AJAX {
                     }
                 }
             };
-            xhttp.overrideMimeType("text/plain; charset=x-user-defined");
+            xhttp.overrideMimeType("text/xml");
             xhttp.open("GET", url, true);
             xhttp.send();
         });