Skip to content

Commit

Permalink
encoding for charmm files
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Dec 16, 2024
1 parent 155e4d4 commit 209befe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htmd/builder/charmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def combine(prmlist, outfile):
myfile + " file does not exist. Cannot create combined parameter file."
)
fn = os.path.basename(myfile)
with open(myfile, "r") as fh:
with open(myfile, "r", encoding="utf-8") as fh:
context = 0
for line in fh:
if re.search(r"^ATOMS", line):
Expand Down

0 comments on commit 209befe

Please sign in to comment.