Skip to content

Commit

Permalink
Merge pull request #14 from anuforok/unicode_error
Browse files Browse the repository at this point in the history
fix UnicodeDecodeError
  • Loading branch information
anuforok authored Sep 11, 2021
2 parents f77dc69 + a1a25bb commit f9f73f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions combine_eng_esp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def handle_files(eng_files, esp_files, export_dir):

def sanitize_value(w):
x = str(w).encode('ascii', 'replace')
y = str(x).decode('utf-8')
return y
return x


def combine_files(eng_file, esp_file):
Expand Down

0 comments on commit f9f73f7

Please sign in to comment.