Skip to content

Commit

Permalink
Converting to unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Jun 3, 2016
1 parent 9f607e3 commit 6f29ab9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pandoc_numbering.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import re
import unicodedata
import subprocess
from unidecode import unidecode

count = {}
information = {}
Expand Down Expand Up @@ -54,7 +53,7 @@ def toJSONFilters(actions):
json.dump(altered, sys.stdout)

def removeAccents(string):
nfkd_form = unicodedata.normalize('NFKD', unicode(string, 'utf-8'))
nfkd_form = unicodedata.normalize('NFKD', u'' + string)
return u"".join([c for c in nfkd_form if not unicodedata.combining(c)])

def toIdentifier(string):
Expand Down

0 comments on commit 6f29ab9

Please sign in to comment.