diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-30 21:42:07 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-30 21:42:07 +0100 |
commit | 084820a7c600ca458b9f98d34db1fb255a32398b (patch) | |
tree | abaf5cd2ce5372418db3b689e3c10bb3c745e648 /source/utils.py | |
parent | Minor improvements to the /feed page. (diff) | |
download | newspipe-084820a7c600ca458b9f98d34db1fb255a32398b.tar.gz newspipe-084820a7c600ca458b9f98d34db1fb255a32398b.tar.bz2 newspipe-084820a7c600ca458b9f98d34db1fb255a32398b.zip |
Bugfix in export.py for export_html().
Diffstat (limited to 'source/utils.py')
-rwxr-xr-x | source/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/utils.py b/source/utils.py index a2f3dfb6..f6cd93d1 100755 --- a/source/utils.py +++ b/source/utils.py @@ -126,8 +126,8 @@ def strip_accents(text, encoding): >>> print strip_accents("déjà", "utf-8") deja """ - unicode_text= unicodedata.normalize('NFD', text.decode(encoding)) - return filter(not_combining, unicode_text).encode(encoding) + unicode_text= unicodedata.normalize('NFD', text) + return filter(not_combining, unicode_text) def normalize_filename(name): """ @@ -137,7 +137,7 @@ def normalize_filename(name): file_name = re.sub("[\s.]", "_", file_name) file_name = file_name.strip('_') file_name = file_name.strip('.') - file_name = strip_accents(file_name, "utf-8") + #file_name = strip_accents(file_name, "utf-8") return os.path.normpath(file_name) def load_stop_words(): |