mirror of
https://github.com/gchq/CyberChef
synced 2025-12-16 00:04:20 +00:00
Added support for 109 more character encodings
This commit is contained in:
@@ -353,10 +353,10 @@ color: white;
|
||||
|
||||
it("Decode text", () => {
|
||||
const encoded = chef.encodeText("Ugly Duckling", {
|
||||
encoding: "UTF16LE (1200)",
|
||||
encoding: "UTF-16LE (1200)",
|
||||
});
|
||||
const result = chef.decodeText(encoded, {
|
||||
encoding: "UTF16LE (1200)",
|
||||
encoding: "UTF-16LE (1200)",
|
||||
});
|
||||
assert.strictEqual(result.toString(), "Ugly Duckling");
|
||||
}),
|
||||
|
||||
@@ -79,7 +79,7 @@ TestRegister.addTests([
|
||||
},
|
||||
{
|
||||
"op": "Decode text",
|
||||
"args": ["UTF16LE (1200)"]
|
||||
"args": ["UTF-16LE (1200)"]
|
||||
},
|
||||
{
|
||||
"op": "Encode text",
|
||||
|
||||
Reference in New Issue
Block a user