File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ function handleFileSelect(event) {
7
7
const asciiString = convertBinaryToAscii ( binaryString ) ;
8
8
const unicodeString = convertBinaryToUnicode ( binaryString , 'UTF-8' ) ; // Umwandlung in UTF-8
9
9
const isoString = convertBinaryToUnicode ( binaryString , 'ISO-8859-1' ) ; // Umwandlung in ISO-8859-1
10
+
10
11
// Gib die Ergebnisse aus oder tue etwas anderes damit
11
12
console . log ( 'ASCII: ' + asciiString ) ;
12
13
console . log ( 'Unicode: ' + unicodeString ) ;
13
14
console . log ( 'ISO-8859-1: ' + isoString ) ;
15
+
14
16
const output = document . getElementById ( 'output' ) ;
15
- output . innerHTML = `ASCII: ${ asciiString } <br>Unicode: ${ unicodeString } <br>ISO-8859-1: ${ isoString } ` ;
17
+ output . innerHTML = `ASCII: ${ decodeURIComponent ( escape ( asciiString ) ) } <br>Unicode: ${ decodeURIComponent ( escape ( unicodeString ) ) } <br>ISO-8859-1: ${ decodeURIComponent ( escape ( isoString ) ) } ` ;
16
18
} ;
17
19
}
18
20
You can’t perform that action at this time.
0 commit comments