Stream: implementers
Topic: hl7.org/fhir text encoding broken?
Michel Rutten (May 06 2019 at 15:37):
When I visit the spec, the text encoding seems to be broken, I'm getting Western/1252 instead of utf-8...?
Michel Rutten (May 06 2019 at 15:38):
Grahame Grieve (May 06 2019 at 15:38):
stupid UTF. There's so many ways to screw it up
Michel Rutten (May 06 2019 at 15:42):
The content-type header seems to be missing
Michel Rutten (May 06 2019 at 15:44):
(I'd be expecting "text/html; charset=UTF-8")
Grahame Grieve (May 06 2019 at 15:45):
@David Johnson this is a web server issue. Or my issue. The source files are all UTF-8, no BOM. (except http://hl7.org/fhir/account.html which now has a BOM). The server is sending the header Content-Type: text/html
with no text encoding header. If I add a BOM, then the browser loads it right anyway. Should the server send the text type?
Michel Rutten (May 06 2019 at 15:47):
With content-type="text/html", the webbrowser seems to be capable of auto-detecting the UTF-8 charset.
Grahame Grieve (May 06 2019 at 15:52):
.. if there's a BOM...?
Michel Rutten (May 06 2019 at 15:59):
Ah yes, only works for the Account page (with BOM)
David Johnson (May 06 2019 at 18:02):
Just seeing this
David Johnson (May 06 2019 at 18:02):
catching up
Grahame Grieve (May 06 2019 at 18:05):
yes. what are the options on the server. Do I have to go populate the BOM? (removed them by accident)
David Johnson (May 06 2019 at 18:06):
I'm not sure yet. :)
David Johnson (May 06 2019 at 18:06):
I don't think changeing content-type to text/html;charset=utf-8 from just text/html will fix it
David Johnson (May 06 2019 at 18:07):
is there a page I can view to see it not working correctly?
David Johnson (May 06 2019 at 18:07):
I understand account.html is working correctly
Grahame Grieve (May 06 2019 at 18:11):
http://hl7.org/fhir/medicinalproductauthorization.html - check the flags column
David Johnson (May 06 2019 at 18:13):
I see
David Johnson (May 06 2019 at 18:17):
tried a quick fix updating mimetype, but I feel I have to research a bit more on BOM associated with UTF-8
Michel Rutten (May 06 2019 at 18:18):
@David Johnson your fix works for me
David Johnson (May 06 2019 at 18:18):
Is it showing a sigma?
David Johnson (May 06 2019 at 18:19):
the weird little E (guessing sigma) :)
Michel Rutten (May 06 2019 at 18:19):
Michel Rutten (May 06 2019 at 18:19):
Yep!
David Johnson (May 06 2019 at 18:19):
okay, cool
Michel Rutten (May 06 2019 at 18:19):
and yes, that symbol represents a capital sigma, for summary ;)
Michel Rutten (May 06 2019 at 18:20):
thx!
David Johnson (May 06 2019 at 18:20):
Grahame, I changed the mime type for .html from plain text/html to text/html;charset=UTF-8
David Johnson (May 06 2019 at 18:20):
absolutely
David Johnson (May 06 2019 at 18:21):
I'm going to spot check some more of the site to see if anything else has changed
Grahame Grieve (May 06 2019 at 18:22):
it does sound like a scarily large change to do that for the whole web site
David Johnson (May 06 2019 at 18:22):
Yeah, right at the start of a WGM :), I don't think we're out of the woods yet
David Johnson (May 06 2019 at 18:23):
Grahame Grieve (May 06 2019 at 18:24):
?! is correct there
David Johnson (May 06 2019 at 18:24):
well good. :)
David Johnson (May 06 2019 at 18:25):
It's also explicit to .html, which isn't used much on hl7.org (cfml/asp)
Last updated: Apr 12 2022 at 19:14 UTC