method DcmPersonName::writeJson outputs incorrectly encoded data to the json document
"Lexer" helper class does not encode characters and produces invalid json if patient name contains for example " (quotation mark)
imho Lexer::writeComponent must call something like DcmJsonFormat::printValueString
Bug in DcmPersonName::writeJson
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Bug in DcmPersonName::writeJson
Hi Shaeto,
thank you for the report, I added an entry to the bug tracker for now.
Best regards,
Michael
thank you for the report, I added an entry to the bug tracker for now.
Best regards,
Michael
Re: Bug in DcmPersonName::writeJson
Thank you Michael,
I see the same problem in DcmPersonName::writeXML method, the writer does not encode components of the patient name
I see the same problem in DcmPersonName::writeXML method, the writer does not encode components of the patient name
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Bug in DcmPersonName::writeJson
Are you talking about the output in Native DICOM Model? The DCMTK-specific XML output format does not show this issue:
Code: Select all
<element tag="0010,0010" vr="PN" vm="1" len="16" name="PatientName">Riesmeier^J"org</element>
Re: Bug in DcmPersonName::writeJson
Yes i meant the native model (dcm2xml -nat)
Who is online
Users browsing this forum: Bing [Bot] and 1 guest