Skip to content

Commit

Permalink
Added decoding to utf-8 in get_short_title
Browse files Browse the repository at this point in the history
  • Loading branch information
Agris Ameriks committed Aug 24, 2013
1 parent f4dd2fc commit 49da4bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crediweb/utils.py
Expand Up @@ -76,6 +76,7 @@ def short_title_replace(word):
return word[0]

def get_short_title(title):
title = title.decode('utf-8')
title = title.replace("SIA", "").replace("AS", "").replace("\"", "").replace("'", "").strip()
splitted = title.split(" ")
if len(title) < 10 or len(splitted)==1:
Expand Down

0 comments on commit 49da4bc

Please sign in to comment.