Skip to content

Commit

Permalink
Fix encoding error (#19)
Browse files Browse the repository at this point in the history
* enforced utf-8 encoding on schema files

* removed erroneous lowering of column headers
  • Loading branch information
jp3477 authored Nov 19, 2021
1 parent 4f2b6ef commit 9b05310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omop_file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_cdm_table_columns(table_name):
file = os.path.join(settings.cdm_metadata_path,
table_name.lower() + '.json')
if os.path.isfile(file):
with open(file, 'r') as f:
with open(file, 'r', encoding='utf-8') as f:
return json.load(f, object_pairs_hook=collections.OrderedDict)
else:
return None
Expand Down

0 comments on commit 9b05310

Please sign in to comment.