We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5e326b + c80f22e commit 9455dd4Copy full SHA for 9455dd4
gemd/units/impl.py
@@ -30,10 +30,10 @@
30
def _deploy_default_files() -> str:
31
"""Copy the units & constants file into a temporary directory."""
32
units_path = Path(_TEMP_DIRECTORY.name) / "citrine_en.txt"
33
- units_path.write_text(read_text("gemd.units", "citrine_en.txt"))
+ units_path.write_text(read_text("gemd.units", "citrine_en.txt"), encoding="utf-8")
34
35
constants_path = Path(_TEMP_DIRECTORY.name) / "constants_en.txt"
36
- constants_path.write_text(read_text("gemd.units", "constants_en.txt"))
+ constants_path.write_text(read_text("gemd.units", "constants_en.txt"), encoding="utf-8")
37
38
return str(units_path)
39
0 commit comments