writeXML for charset ISO 2022 IR 13 or ISO 2022 IR 149

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
deepak.bme
Posts: 10
Joined: Tue, 2013-01-29, 12:11

writeXML for charset ISO 2022 IR 13 or ISO 2022 IR 149

#1 Post by deepak.bme » Mon, 2013-07-22, 10:55

Hi

I am trying to write DCMDirectoryRecord Object into XML ,which has ISO 2022 IR 13 (i.e Japanese ) or ISO 2022 IR 149(i.e Korean ) Patient Name using WriteXML API.
It add some junk values into it and am not able to parse that XML.

I wanted to know Is these character set are supported in DCMTK write XML ??
If not what are other option to write into XML

Regards,
Deepak Kamboj

J. Riesmeier
DCMTK Developer
Posts: 2284
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: writeXML for charset ISO 2022 IR 13 or ISO 2022 IR 149

#2 Post by J. Riesmeier » Mon, 2013-07-22, 13:47

The character set encoding is neither changed nor specified explicitly by the writeXML() API. This has to be done by the application. The command line tool dcm2xml for example supports a couple of character encodings (but not the ones you are asking for). See documentation for details.

I would recommend to convert the DICOM dataset to UTF-8 before writing the XML document (with the encoding specified explicitly).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest