FHIR Chat · hl7.org/fhir text encoding broken? · implementers

Stream: implementers

Topic: hl7.org/fhir text encoding broken?


view this post on Zulip 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...?

view this post on Zulip Michel Rutten (May 06 2019 at 15:38):

pasted image

view this post on Zulip Grahame Grieve (May 06 2019 at 15:38):

stupid UTF. There's so many ways to screw it up

view this post on Zulip Michel Rutten (May 06 2019 at 15:42):

The content-type header seems to be missing

view this post on Zulip Michel Rutten (May 06 2019 at 15:44):

(I'd be expecting "text/html; charset=UTF-8")

view this post on Zulip 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?

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (May 06 2019 at 15:52):

.. if there's a BOM...?

view this post on Zulip Michel Rutten (May 06 2019 at 15:59):

Ah yes, only works for the Account page (with BOM)

view this post on Zulip David Johnson (May 06 2019 at 18:02):

Just seeing this

view this post on Zulip David Johnson (May 06 2019 at 18:02):

catching up

view this post on Zulip 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)

view this post on Zulip David Johnson (May 06 2019 at 18:06):

I'm not sure yet. :)

view this post on Zulip 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

view this post on Zulip David Johnson (May 06 2019 at 18:07):

is there a page I can view to see it not working correctly?

view this post on Zulip David Johnson (May 06 2019 at 18:07):

I understand account.html is working correctly

view this post on Zulip Grahame Grieve (May 06 2019 at 18:11):

http://hl7.org/fhir/medicinalproductauthorization.html - check the flags column

view this post on Zulip David Johnson (May 06 2019 at 18:13):

I see

view this post on Zulip 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

view this post on Zulip Michel Rutten (May 06 2019 at 18:18):

@David Johnson your fix works for me

view this post on Zulip David Johnson (May 06 2019 at 18:18):

Is it showing a sigma?

view this post on Zulip David Johnson (May 06 2019 at 18:19):

the weird little E (guessing sigma) :)

view this post on Zulip Michel Rutten (May 06 2019 at 18:19):

pasted image

view this post on Zulip Michel Rutten (May 06 2019 at 18:19):

Yep!

view this post on Zulip David Johnson (May 06 2019 at 18:19):

okay, cool

view this post on Zulip Michel Rutten (May 06 2019 at 18:19):

and yes, that symbol represents a capital sigma, for summary ;)

view this post on Zulip Michel Rutten (May 06 2019 at 18:20):

thx!

view this post on Zulip 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

view this post on Zulip David Johnson (May 06 2019 at 18:20):

absolutely

view this post on Zulip 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

view this post on Zulip Grahame Grieve (May 06 2019 at 18:22):

it does sound like a scarily large change to do that for the whole web site

view this post on Zulip 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

view this post on Zulip David Johnson (May 06 2019 at 18:23):

pasted image

view this post on Zulip Grahame Grieve (May 06 2019 at 18:24):

?! is correct there

view this post on Zulip David Johnson (May 06 2019 at 18:24):

well good. :)

view this post on Zulip 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