Skip to content

fix reading encoded strings - #92

Closed
vsaase wants to merge 2 commits into
dcmjs-org:masterfrom
vsaase:fix_readString_utf8
Closed

vsaase wants to merge 2 commits into
dcmjs-org:masterfrom
vsaase:fix_readString_utf8

Conversation

@vsaase

@vsaase vsaase commented Feb 23, 2020

Copy link
Copy Markdown
Contributor

this is a proposal, may need some testing
the standard DICOM encoding is ISO-IR 6, which I think is something like ASCII.
More common I think is ISO-IR 100 when not otherwise specified.
At the moment I only check for UTF-8, known as ISO-IR 192 in the DICOM standard. There may be some other encodings in common use?

@pieper

pieper commented Mar 4, 2020

Copy link
Copy Markdown
Collaborator

@vsaase thanks for the contribution 👍

I'll admit that text encodings is not my area of expertise. Would it be possible to make some test examples?

I recently added some small amount of testing and an https://github.com/dcmjs-org/data repo to store bulk data as release assets. Probably we'll continue to evolve the testing architecture but at least for now this gives us at least a little structure. (Suggestions welcome!).

@wayfarer3130

Copy link
Copy Markdown
Contributor

@vsaase, Thank you for this contribution. The reader now decodes text with the decoder of the SpecificCharacterSet (#493, and src/charset/ in 1.0). This change is no longer necessary, so I close it.

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.

3 participants