Skip to content

Commit 3b2035f

Browse files
authored
Merge pull request #734 from gerlero/files
Change string encoding to default in serialization
2 parents e9b5874 + 6806adb commit 3b2035f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/foamlib/_files/_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def dumps(
641641
return dumps(str(data))
642642

643643
case str(), _, _:
644-
return data.encode("latin-1") # ty: ignore[possibly-missing-attribute]
644+
return data.encode() # ty: ignore[possibly-missing-attribute]
645645

646646
case _:
647647
assert_never(data) # ty: ignore[type-assertion-failure]

0 commit comments

Comments
 (0)