Bug 8308 - tlwebadm templates are read with wrong encoding
Summary: tlwebadm templates are read with wrong encoding
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Administration (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2024-02-08 13:13 CET by Pierre Ossman
Modified: 2024-02-13 14:32 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2024-02-08 13:13:20 CET
When tlwebadm loads its templates from disk, we have not specified a specific encoding. The templates will then be opened using the default encoding, which is usually set by the locale.

Our templates are encoded in UTF-8, which is what most systems use for locale. So generally, there will be no issues.

If the system uses a different locale, though, you'll either get crashes, or mojibake in the HTML output.

The crash will typically only happen on systems that are running C locale, and Python older than 3.7. At that point, the default encoding is ASCII, which is typically the only encoding that will throw exceptions on UTF-8 data.

Note You need to log in before you can comment on or make changes to this bug.