Skip to content

Wrong decoding from ISO 2022 IR 100 to ISO IR 192 (UTF-8)? #454

@luissantosHCIT

Description

@luissantosHCIT

Intro

Hello,

I was working on a feature that I wanted to contribute to OHIF. The feature is a component for rendering encapsulated reports. During my work, I noticed that reports were showing up with  , which is  .

I look at an internal sample DICOM SR and the report switches encoding in the Findings node of the SR module to ISO 2022 IR 100.
Based on issues #84, #373, and #451, I am assuming that dcmjs tries to set the specific character set early on and perform conversions based on that.
If that is the case, perhaps it is not switching to a new decoder to properly decode the input encapsulated report to utf-8.

I am new to dcmjs itself and it looks like this will be an involved issue. I am hoping someone with more experience can point in the right direction before I find the time to investigate the issue.

I will provide more information as I come across it.

Examples

HTML Rendering of Report

Image

Expected HTML Input (Different Sample at Hand in Text Editor)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions