FHIR Chat · Valueset ISO3166-1-2 characterset? · implementers

Stream: implementers

Topic: Valueset ISO3166-1-2 characterset?


view this post on Zulip Tilo Christ (Mar 30 2021 at 21:27):

I am looking to build questionnaires which include Valueset ISO 3166-1-2 (list of countries). The published ValueSet at http://hl7.org/fhir/valueset-iso3166-1-2.json is broken for non-ASCII characters (Côte Ivoir, Curaçao, etc.). Is this due to the publishing process and there is some other location which is the source of truth with unbroken UTF-8 encoding?

view this post on Zulip Lloyd McKenzie (Mar 30 2021 at 21:33):

@Grahame Grieve @Rob Hausam

view this post on Zulip Rob Hausam (Mar 31 2021 at 13:53):

@Tilo Christ Those 2 examples in particular seem to be rendering correctly for me (following the link). Maybe it would be good to see a screenshot of what you are seeing?

view this post on Zulip Tilo Christ (Mar 31 2021 at 14:02):

image.png image.png

I think I am getting an idea here though, these screenshots (and my previous downloads) were done on Safari. Based on your feedback I also tried Chrome and there it is good. Not sure if Safari could also be forced through some header on the web server or some encoding flag in the JSON to see this properly. I have found some pointers that setting the Content-Type header from "application/json" to "application/json; charset=utf8" might do the trick.

view this post on Zulip Ian Bacher (Mar 31 2021 at 15:09):

In Safari, you can also open Preferences -> Advanced and change the Default Encoding to UTF-8.

view this post on Zulip Tilo Christ (Mar 31 2021 at 15:12):

Ian Bacher said:

In Safari, you can also open Preferences -> Advanced and change the Default Encoding to UTF-8.

Thanks! That worked! I guess in the long-run it would still be good if the HL7 webmaster sent out a more complete header, to make it more reliable for everybody. But this helped. Also explains why I was sometimes seeing weird Copyright symbols in some of the other JSON content.


Last updated: Apr 12 2022 at 19:14 UTC