Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Output fails when Spanish Language is selected for Information Recipient #18

Open
appliedhcs opened this issue Aug 23, 2017 · 3 comments
Assignees
Labels

Comments

@appliedhcs
Copy link

Hi!
We are encountering an issue when XML is selected as an output and Spanish is selected as language for Information Recipient to generate an URL from "Test Resource" link in LITE. Same is failing when tried to perform same task at http://lite.bmi.utah.edu/InfobuttonQA.html (LITE from University of Utah). Below is the reported error:
This page contains the following errors:
error on line 1 at column 4771: Encoding error

Any help to resolve this issue is greatly appreciated.

@aniskand
Copy link
Collaborator

aniskand commented Aug 23, 2017

Hmmm, it seems to be failing on the character ú in the summary text it receives from MedLinePlus. What's odd is when set to JSON it returns the character just fine. Also, if I use a REST client instead of a browser to make the request, like https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo/related?hl=en-US , it also works although without properly decoding the character.

I will have to investigate this further and see if there is anything I can do. This seems to be an issue with how the return is being parsed by your browser/client rather than the response that is being generated by the OpenInfobutton. Or maybe I need to set a different character encoding type in the header for non-english language responses. This isn't really something we've tested much so thanks for letting us know. I can't really promise a quick fix or even give you a timeframe so for the time being I would just avoid using XML with non-English responses.

@appliedhcs
Copy link
Author

Hi Aniskand,

Thank you very much for your quick response and initial input. It is understood that it may take a bit of time to resolve this issue. I agree that perhaps the change of character type in the header for non-English language might be a quick fix. Please keep us in the loop of any update and in mean time we will attempt to use JSON response for non-English requests.

Thank you.

@aniskand aniskand reopened this Aug 23, 2017
@aniskand aniskand self-assigned this Aug 23, 2017
@aniskand aniskand added the bug label Aug 23, 2017
@aniskand
Copy link
Collaborator

Ok, looking at this again, I think the problem is the summary text we get from resources that support the HL7 Knowledge Response isn't being UTF-8 encoded before being added to the response. I can probably fix this on my end, but again, no timeframe. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants