Attachments do not send or honour text/plain;charset=UTF-8 encoding

Bug #1059752 reported by Paul Sladen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

'text/plain' attachments are served with charset ISO-8859-1 even if they are UTF-8 (the common case). Here is an example:

  https://launchpadlibrarian.net/118025172/airplane-mode-translations.txt

the output looks corrupted, unless the viewer manually overrides their browser Encoding. Additionally even providing the '; charset=UTF-8' suffix on the attachment edit page:

  https://bugs.launchpad.net/ayatana-design/+bug/1034488/+attachment/3362298

does not serve it as UTF-8. Ideally:

  Launchpad Librarian should default to UTF-8 for textual attachments
  Launchpad Librarian should respect and pass through the '; charset=' suffix as provided.

Header example:

  wget -q -S https://launchpadlibrarian.net/118025172/airplane-mode-translations.txt -O /dev/null 2>&1 | grep Content-Type:
  Content-Type: text/plain

Tags: librarian
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
tags: added: email
William Grant (wgrant)
tags: added: librarian
removed: email
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.