Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] l10n_fr_das2: use utf-8 for 2025 campaign #609

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading