Stream: shorthand
Topic: special character conversion
Giorgio Cangioli (Apr 06 2020 at 15:18):
I'm experiencing this issue .
the fsh file segment :
* #MCA "medico continuità assistenziale"
is converted into
{ "code": "MCA", "display": "medico continuit� assistenziale" }
is any configuration step that i missed ?
Chris Moesel (Apr 06 2020 at 15:22):
Hi @Giorgio Cangioli. Do you know if your FSH file is UTF8-encoded or if it is using a different character encoding?
Giorgio Cangioli (Apr 06 2020 at 16:54):
Hi @Chris Moesel the encoding was ANSI default; I saved the file as Unicode UTF-8 BOM, but in this case this new error appears
error mismatched input '//==============' expecting {<EOF>, KW_ALIAS, KW_PROFILE, KW_EXTENSION, KW_INSTANCE, KW_INVARIANT, KW_VALUESET, KW_CODESYSTEM, KW_RULESET, KW_MAPPING} File: C:\Ruby26-x64\msys64\home\giorg\_github\hl7.fhir.it.base\fsh\test2.fsh Line: 1 info Preprocessed 1 documents with 0 aliases.
Giorgio Cangioli (Apr 06 2020 at 16:54):
no errors with the original file
Vassil Peytchev (Apr 06 2020 at 16:58):
Using utf-8 with BOM should be avoided. If you save it as UTF-8 without BOM, does the error still occur?
Giorgio Cangioli (Apr 06 2020 at 17:00):
I tried also Unicode UTF-8 no BOM.
In this case no sushi failures, the result is different but not yet good...
"display": "medico continuità assistenziale"
Vassil Peytchev (Apr 06 2020 at 17:10):
Just for completeness, if you open the FSH file with Notepad++, and then save as UTF-8 (no BOM), does it still render incorrectly? I think Notepad++ has a good handling of character set conversions (although when stumped, Emacs has always solved these for me).
Last updated: Apr 12 2022 at 19:14 UTC