FHIR Chat · Charset specification and Internationalization · implementers

Stream: implementers

Topic: Charset specification and Internationalization


view this post on Zulip Sarvesh Padwal (Jul 01 2019 at 07:01):

Hi All, I have a doubt on FHIR charset support.
As per https://www.hl7.org/fhir/v3/Charset/cs.html FHIR supports UTF 8 only.
As per http://hl7.org/fhir/languages.html, we can provide content in specific language for example: Chinese which is UTF 16
So how can we conclude about FHIR charset support here?

view this post on Zulip Lloyd McKenzie (Jul 01 2019 at 14:17):

You can do Chinese using UTF-8

view this post on Zulip Lloyd McKenzie (Jul 01 2019 at 14:17):

(Or any other language)

view this post on Zulip Sarvesh Padwal (Jul 02 2019 at 05:44):

@Lloyd McKenzie
Example: http://hl7.org/fhir/patient-example-chinese.json.html
For above example, As per FHIR specification, we have to make it Content-Type: application/fhir+json;charset=UTF-8
I think If we do Chinese using UTF-8, then some information may be lost.

view this post on Zulip Richard Townley-O'Neill (Jul 02 2019 at 06:59):

https://en.wikipedia.org/wiki/UTF-8

view this post on Zulip Richard Townley-O'Neill (Jul 02 2019 at 06:59):

Looks like nothing will be lost.

view this post on Zulip Sarvesh Padwal (Jul 02 2019 at 08:20):

Ok. This makes sense. Actually I never worked with UTF-16 earlier. Just got this doubt. It seems like UTF-8 is universal and it supports all UTF family.


Last updated: Apr 12 2022 at 19:14 UTC