Skip to content

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Oct 21, 2025

DICOM files can contain invalid UTF-8 in metadata. JavaScript JSON.parse() rejects invalid UTF-8

We will need to rebuild the WASM building docker images.

I looked into updating to c++23 and using Glaze's escape_control_characters = true PaulHax#3
But that did not sanitize the binary garbage in the date tags in this example dicom corrupt_dates.zip

Closes #1454

DICOM files can contain invalid UTF-8 in metadata.
JavaScript JSON.parse() rejects invalid UTF-8
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 great, thanks Paul!

@thewtex thewtex merged commit 7eacc02 into InsightSoftwareConsortium:main Oct 24, 2025
81 of 83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control characters in image metadata trigger error in readImage

2 participants