From 9bb737b75813399b12acf5318107bae9bb452b53 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 6 Feb 2020 16:08:34 -0600 Subject: Fixed encoding issue --- wqflask/base/trait.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wqflask') diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 8dbd1964..7ec764d8 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -463,6 +463,10 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False): else: trait.description_display = "" + trait.abbreviation = unicode(str(trait.abbreviation).strip(codecs.BOM_UTF8), 'utf-8', errors="replace") + trait.description_display = unicode(str(trait.description_display).strip(codecs.BOM_UTF8), 'utf-8', errors="replace") + trait.authors = unicode(str(trait.authors).strip(codecs.BOM_UTF8), 'utf-8', errors="replace") + if not trait.year.isdigit(): trait.pubmed_text = "N/A" else: -- cgit v1.2.3