Update encodings

This commit is contained in:
Andrew Case
2025-03-14 03:12:06 +00:00
parent 7ab62365fb
commit 36b3c28859
+8 -1
View File
@@ -188,7 +188,14 @@ def address_to_string(
if count < 1:
raise ValueError("Count must be greater than 0")
encodings = {"utf8": 1, "utf16": 2, "utf32": 4}
encodings = {
"utf-8": 1,
"utf8": 1,
"utf-16": 2,
"utf16": 2,
"utf32": 4,
"utf-32": 4,
}
if encoding not in encodings:
raise ValueError(
f"Encoding ({encoding} is invalid. Must be one of {[e for e in encodings]}."