Skip to content

Commit

Permalink
Merge pull request #192 from aunderwo/master
Browse files Browse the repository at this point in the history
Fix utf-8 encoding problems
  • Loading branch information
martinghunt authored Aug 14, 2017
2 parents c0d7d8c + f59eb99 commit 2a58a26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ariba/ref_genes_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def _get_from_card(self, outprefix):
for gene_key, gene_dict in sorted(json_data.items()):
crecord = card_record.CardRecord(gene_dict)
data = crecord.get_data()
data['ARO_description'] = data['ARO_description'].encode('utf-8')
fasta_name_prefix = '.'.join([
card_record.CardRecord._ARO_name_to_fasta_name(data['ARO_name']),
data['ARO_accession'],
Expand Down

0 comments on commit 2a58a26

Please sign in to comment.