diff --git a/js/app.js b/js/app.js index f0852e8..243b2e6 100644 --- a/js/app.js +++ b/js/app.js @@ -22,7 +22,13 @@ let updateTimer = null; async function fetchRoundPGN(round) { const res = await fetch(`https://www.deutsche-schachjugend.de/2026/odjm-d/partien/${round}.pgn?t=${Date.now()}`); if (!res.ok) return null; - return await res.text(); + const buf = await res.arrayBuffer(); + // DSJ liefert ISO-8859-1; versuche UTF-8, fallback auf Latin-1 + let text = new TextDecoder('utf-8').decode(buf); + if (text.includes('\uFFFD')) { + text = new TextDecoder('iso-8859-1').decode(buf); + } + return text; } async function loadPGN(showOverlay = true) {