DemocracyClub / UK-Polling-Stations

:earth_africa: A website to help people find their UK polling station
https://wheredoivote.co.uk/
BSD 3-Clause "New" or "Revised" License
33 stars 30 forks source link

Backtick/apostrophe encoding/display #4733

Open GeoWill opened 2 years ago

GeoWill commented 2 years ago

"St Philip`s Church","Earl`s Court Road","London" renders as: Screenshot from 2022-05-05 13-15-28

Source: KEC/2022-05-05/2022-03-10T11:16:41.646308/Democracy_Club__05May2022.CSV

alexdutton commented 2 years ago

Example address: https://wheredoivote.co.uk/address/217053565/

Having done a bit of investigating:

alexdutton commented 2 years ago

More info:

Here's the glyphs: https://fonts.google.com/specimen/Montserrat#glyphs

So I guess it's some weird browser rendering thing not helped by having to fall back to another font for the backtick?

GeoWill commented 2 years ago

I guess we could just s/`/'/g on all addresses in the base importer class (or maybe data_types). I think that would be less wrong especially if Montserrat doesn't even have a backtick.