openrightsgroup / blocked-org-uk

Template front-end code, markup, style-sheets, images and other assets for the Censorship Monitoring Project (blocked.org.uk)
https://www.blocked.org.uk/
GNU General Public License v3.0
13 stars 5 forks source link

Parse smart quotes correctly #362

Closed alexhaydock closed 5 years ago

alexhaydock commented 5 years ago

Smart quotes seem to be printed as =E2=80=9C and =E2=80=9D which causes quite a readability issue when it comes to ISP response emails.

See this example here: https://www.blocked.org.uk/control/ispreports/Sky/376/http://tgozed.uk

=E2=80=9CPEER=E2=80=9D should ideally read "PEER".

dantheta commented 5 years ago

This one actually varies by network - it depends on the email encoding used by the ISP's helpdesk software. The character encoding that you're seeing is "quoted-printable", which the viewer doesn't decode correctly yet.

dantheta commented 5 years ago

This is fixed - adding a decoder for quoted-printable was pretty easy.