Skip to content

Commit

Permalink
[UDP] l10n_fr_das2: use utf-8 for 2025 campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Jan 17, 2025
1 parent 047a6b2 commit 78ba700
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions l10n_fr_das2/models/l10n_fr_das2.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,16 +728,8 @@ def generate_file_and_attach(self, encryption="prod"):
)

file_content = self._prepare_file()
try:
file_content_encoded = file_content.encode("latin1")
except UnicodeEncodeError as e:
raise UserError(
_(
"A special character in the DAS2 file is not in the latin1 "
"table. Please locate this special character and replace "
"it by a standard character and try again."
)
) from e
# In 2025, they made it clear (at last !) that the file must be in utf-8
file_content_encoded = file_content.encode("utf-8")

try:
file_bytes_result, filename = generate_file(
Expand Down

0 comments on commit 78ba700

Please sign in to comment.